in reply to Or there's also . . .in thread Cutting down a string
$string = sprintf( "%.20s..", $string ) if length($string) > 22; [download]