Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

mb_preferred_mime_name

Description

The mb_preferred_mime_name of Multibyte String for PHP get MIME charset string.

Syntax

mb_preferred_mime_name(
    string $encoding
): string|false

Parameters

encoding

The encoding being checked.

Return

The MIME charset string for character encoding encoding, or false if no charset is preferred for the given encoding.

Examples

1 · encoding

<?

$encoding = 'UTF-8';

$return = mb_preferred_mime_name($encoding);

echo $return;

?>
UTF-8
HomeMenu