Web Analytics

PHP mb_strlen() Function

Multibyte StringPHP 4.0.6+

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