in reply to Or there's also . . .
in thread Cutting down a string


Nice, but not quite right:
$string = sprintf( "%.20s..", $string ) if length($string) > 22;
--
John.