首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

mb_http_output

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

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

描述

代码语言:javascript
复制
mixed mb_http_output ([ string $encoding = mb_http_output() ] )

设置/获取HTTP输出字符编码。调用此函数后的输出将从设置的内部编码转换为encoding

参数

encoding

如果encoding已设置,则mb_http_output()将HTTP输出字符编码设置为encoding

如果encoding省略,mb_http_output()将返回当前的HTTP输出字符编码。

返回值

如果encoding省略,mb_http_output()将返回当前的HTTP输出字符编码。否则,成功返回TRUE或失败返回FALSE

另请参阅

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

← mb_http_input

mb_internal_encoding →

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com