PHP mb_check_encoding() Function
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
Enjoying these tutorials?