Web Analytics

PHP mb_substr() Function

Multibyte StringPHP 4.0.6+

The mb_substr() function extracts a portion of a multibyte string, correctly handling UTF-8 and other character encodings.

Syntax

mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): string

Try It Online

Output
Click Run to execute your code