Search Results
Return Values ¶ The MIME charset string for character encoding encoding, or false if no charset is preferred for the given encoding.
The mb_preferred_mime_name() function in PHP is used to return the MIME charset string for a character encoding. It gets a MIME (Multipurpose Internet Mail Extensions) charset string for the specific encoding.
PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8 mb_preferred_mime_name - Get MIME charset string Manual Code Examples
Examples Example #1 mb_preferred_mime_name example <?php $outputenc="sjis-win"; mb_http_output($outputenc); ob_start("mb_output_handler"); header("Content-Type: text ...
Return Values The MIME charset string for character encoding encoding, or false if no charset is preferred for the given encoding.
Valeurs de retour Le nom de l'encodage MIME pour l'encodage encoding, ou false si aucun jeu de caractère n'est préféré pour l' encoding donnée.
Simple usage example of `mb_preferred_mime_name ()`. The mb_preferred_mime_name is a PHP function that retrieves the preferred MIME charset name for a specified encoding. It determines the most appropriate MIME charset name by considering the available character sets and their preferences.
