PHP string function strlen

The String function strlen(), returns the length of the given string

PHP string function strlen


Parameter Description
mystring This is a required parameter which defines the string to check

Return Value

It will return the length of the string on success and if string is empty it returns zero (0).



NOTE: It returns number of bytes rather than number of characters.

NOTE: It returns NULL when executed on Arrays.