The strlen() function returns the length of a string.
int strlen ( string $string )
Returns the length of the given string.
strlen — Get string length
Parameter | Description |
---|---|
string | The string being measured for length. |
The length of the string on success, and 0 if the string is empty.