mb_preferred_mime_name

(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)

mb_preferred_mime_name获取 MIME 字符串

说明

mb_preferred_mime_name(string $encoding): string

获取指定编码的 MIME 字符 string

参数

encoding

要检查的字符串。

返回值

字符编码 encoding 的 MIME charset string

范例

示例 #1 mb_preferred_mime_name() 例子

<?php
$outputenc 
"sjis-win";
mb_http_output($outputenc);
ob_start("mb_output_handler");
header("Content-Type: text/html; charset=" mb_preferred_mime_name($outputenc));
?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

备份地址:http://www.lvesu.com/blog/php/function.mb-preferred-mime-name.php