Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php limit string length

if (strlen($str) > 10)
   $str = substr($str, 0, 7) . '...';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #limit #string #length
ADD COMMENT
Topic
Name
5+5 =