Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php truncate string

$string = (strlen($string) > 13) ? substr($string,0,10).'...' : $string;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #truncate #string
ADD COMMENT
Topic
Name
6+8 =