php string length Example

Posted by Paidboom - 1 year ago

php string length : You can simply use the PHP strlen() function to get the length of a string. The strlen() function return the length of the string on success, and 0 if the string is empty.

echo strlen(''); 


echo strlen("Hello world!");