Answers for "php code to limit number of characters in a string"

PHP
1

php limit string length

if (strlen($str) > 10)
   $str = substr($str, 0, 7) . '...';
Posted by: Guest on July-17-2020

Code answers related to "php code to limit number of characters in a string"

Browse Popular Code Answers by Language