Help for this page
substr( $string, 20 ) = '..' if length($string) > 22;
$string = sprintf( "%20s..", $string ) if length($string) > 22;