php make a text a max length followed by ... code example Example: php string max length $string = substr($string,0,255); //max 255 chars