The strlen() function return the lengrh of string
strlen( string $string ) : int
Parameter Name | Descrption |
---|---|
$string | Required, The input string. |
Return the length of the string, if the string is empty then 0.
echo strlen('PHP String Length'); //17 echo strlen(' String '); //8
Related Functions