Php Display only number of characters from string
This is an example to display only 13 characters from a string:
$string = (strlen($string) > 13) ? substr($string,0,10).'...' : $string;
This is an example to display only 13 characters from a string:
$string = (strlen($string) > 13) ? substr($string,0,10).'...' : $string;