strlen
Get string length
&reftitle.description;
intstrlen
stringstring
Returns the length of the given string.
&reftitle.parameters;
string
The string being measured for length.
&reftitle.returnvalues;
The length of the string on success,
and 0 if the string is empty.
&reftitle.changelog;
&Version;
&Description;
5.3.0
Prior versions treated arrays as the string Array, thus returning
a string length of 5 and emitting an E_NOTICE level error.
&reftitle.examples;
A strlen example
]]>
&reftitle.notes;
strlen returns the number of bytes rather than the number
of characters in a string.
strlen returns &null; when executed on arrays, and
an E_WARNING level error is emitted.
&reftitle.seealso;
count
mb_strlen