Web Analytics

PHP mb_check_encoding() Function

Multibyte StringPHP 4.4.3+

The mb_check_encoding() function checks whether a string is valid for the specified character encoding.

Syntax

mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool

Try It Online

Output
Click Run to execute your code