Answers for "php string max characters"

PHP
1

php limit string length

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

php string max length

$string = substr($string,0,255); //max 255 chars
Posted by: Guest on February-18-2021

Browse Popular Code Answers by Language