略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: mb_preferred_mime_name

2024-05-06

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.

官方地址:https://www.php.net/manual/en/function.mb-preferred-mime-name.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3