PHP 7.2.0 Release Candidate 4 Released

mb_preferred_mime_name

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

mb_preferred_mime_name获取 MIME 字符串

说明

string mb_preferred_mime_name ( string $encoding )

获取指定编码的 MIME 字符 string

参数

encoding

要检查的字符串。

返回值

字符编码 encoding 的 MIME charset string

范例

Example #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 note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top