PHP mb_strlen() Function
The mb_strlen() function returns the number of characters in a multibyte string, correctly handling UTF-8 and other encodings.
Syntax
mb_strlen(string $string, ?string $encoding = null): int
Try It Online
Output
Click Run to execute your code
Enjoying these tutorials?