导航首页 » 技术教程 » PHP:mb_http_output()的用法_mbstring函数
PHP:mb_http_output()的用法_mbstring函数 162 2023-12-11   

mb_http_output

(PHP 4 >= 4.0.6, PHP 5)

mb_http_output — 设置/获取 HTTP 输出字符编码

说明

mixed mb_http_output ([ string $encoding = mb_http_output() ] )

设置/获取 HTTP 输出字符编码。此函数之后输出的内容会被转换成 encoding

参数

encoding

如果设置了 encodingmb_http_output() 设置 HTTP 输出字符编码为 encoding

如果省略了 encodingmb_http_output() 返回当前的 HTTP 输出字符编码。

返回值

如果省略了 encodingmb_http_output() 返回当前的 HTTP 输出字符编码。 否则成功时返回 TRUE, 或者在失败时返回 FALSE

参见

mb_internal_encoding() - 设置/获取内部字符编码 mb_http_input() - 检测 HTTP 输入字符编码 mb_detect_order() - 设置/获取 字符编码的检测顺序


!!!站长长期在线接!!!

网站、小程序:定制开发/二次开发/仿制开发等

各种疑难杂症解决/定制接口/定制采集等

站长微信:lxwl520520

站长QQ:1737366103