ALIAS

mbdetect()

ShortPHP reference for mb_detect_encoding().

Signature

mb_detect_encoding(array|string $string, array|string|null $encodings = null, bool $strict = false): string|false

Example

mbdetect(...);

PHP equivalent

mb_detect_encoding() is the canonical PHP function. ShortPHP provides mbdetect() as the convenience alias.

Extension: mbstring

Official PHP manual ↗

Reference navigation

Previous: mbenc()

Next: mbsl()

Back to reference