grapheme_strlen
PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0
grapheme_strlen - Get string length in grapheme units
Manual
grapheme_strlen(
string$string ): int|false|null
Get string length in grapheme units (not bytes or characters)
Parameters
- string
-
The string being measured for length. It must be a valid UTF-8 string.
Return Values
The length of the string on success, or false on failure.