位置: 编程技术 - 正文
推荐整理分享PHP:mb_internal_encoding()的用法_mbstring函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4 >= 4.0.6, PHP 5)
mb_internal_encoding — 设置/获取内部字符编码
说明 mixed mb_internal_encoding ([ string $encoding = mb_internal_encoding() ] )设置/获取内部字符编码
参数encoding
encoding 字符编码名称使用于 HTTP 输入字符编码转换、HTTP 输出字符编码转换、mbstring 模块系列函数字符编码转换的默认编码。 You should notice that the internal encoding is totally different from the one for multibyte regex.
返回值如果设置了 encoding,则成功时返回 TRUE, 或者在失败时返回 FALSE。 In this case, the character encoding for multibyte regex is NOT changed. 如果省略了 encoding,则返回当前的字符编码名称。
范例
Example #1 mb_internal_encoding() 例子
<?php/*设置内部字符编码为UTF-8*/mb_internal_encoding("UTF-8");/*显示当前的内部字符编码*/echomb_internal_encoding();?> 参见mb_http_input() - 检测 HTTP 输入字符编码 mb_http_output() - 设置/获取 HTTP 输出字符编码 mb_detect_order() - 设置/获取 字符编码的检测顺序 mb_regex_encoding() - Set/Get character encoding for multibyte regex
PHP:mb_http_output()的用法_mbstring函数 mb_http_output(PHP4=4.0.6,PHP5)mb_http_output设置/获取HTTP输出字符编码说明mixedmb_http_output([string$encoding=mb_http_output()])设置/获取HTTP输出字符编码。此函数之后输出
PHP:mb_http_input()的用法_mbstring函数 mb_http_input(PHP4=4.0.6,PHP5)mb_http_input检测HTTP输入字符编码说明mixedmb_http_input([string$type=])检测HTTP输入字符的编码。参数type设置的字符串指定了输入类型。G
PHP:mb_get_info()的用法_mbstring函数 mb_get_info(PHP4=4.2.0,PHP5)mb_get_info获取mbstring的内部设置说明mixedmb_get_info([string$type=all])mb_get_info()返回mbstring参数的内部设定。参数type如果没有设定type,或
标签: PHP:mb_internal_encoding()的用法_mbstring函数
本文链接地址:https://www.jiuchutong.com/biancheng/278776.html 转载请保留说明!上一篇:PHP:mb_language()的用法_mbstring函数(php mb_convert_encoding)
友情链接: 武汉网站建设