June 2004
Smart Text Trimming
Posted by on Thursday, June 10, 2004 - 29 comments
Well here is my first so Labs post. • Often times, there are fields on forms or on pages that need to fit in a certain length. Article previews and select lists are two good examples. An easy way to ensure your text is withing the required length using PHP is to use $string = substr($string, 0 …