grapheme_strlenGet string length in grapheme units DescriptionProcedural style
intfalsenull grapheme_strlen(string
$string)Get string length in grapheme units (not bytes or characters) Parameters
Return Values
The length of the string on success, ExamplesExample #1 grapheme_strlen example The above example will output: 6 Example #2 Handling invalid UTF-8 input
grapheme_strlen returns The above example will output: grapheme_strlen() failed: U_INVALID_CHAR_FOUND (10) See Also
|