PHP strlen() Function

The strlen() function returns the length of a string.

int strlen ( string $string )

Returns the length of the given string.

strlen — Get string length

Example -

ParameterDescription
stringThe string being measured for length.

The length of the string on success, and 0 if the string is empty.