Thanks for the pointer, this is exactly what I needed.
I also found this handy function written by mancini at nextcode dot org:
//limit chars
function limitch($value,$lenght){
if (strlen($value) >= $lenght ){
$limited = substr($value,0,$lenght);
$limited .= "...";
}
return $limited;
}