位置: 编程技术 - 正文

PHP:mb_regex_encoding()的用法_mbstring函数

编辑:rootadmin
mb_regex_encoding

推荐整理分享PHP:mb_regex_encoding()的用法_mbstring函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4 >= 4.2.0, PHP 5)

mb_regex_encoding — Set/Get character encoding for multibyte regex

说明 mixed mb_regex_encoding ([ string $encoding = mb_regex_encoding() ] )

Set/Get character encoding for a multibyte regex.

参数 PHP:mb_regex_encoding()的用法_mbstring函数

encoding

encoding参数为字符编码。如果省略,则使用内部字符编码。

返回值

If encoding is set, then 成功时返回 TRUE, 或者在失败时返回 FALSE。 In this case, the internal character encoding is NOT changed. If encoding is omitted, then the current character encoding name for a multibyte regex is returned.

更新日志

版本 说明 5.6.0 Default encoding is changed to UTF-8. It was EUC-JP Previously.

参见

mb_internal_encoding() - 设置/获取内部字符编码 mb_ereg() - Regular expression match with multibyte support

PHP:mb_ereg_match()的用法_mbstring函数 mb_ereg_match(PHP4=4.2.0,PHP5)mb_ereg_matchRegularexpressionmatchformultibytestring说明boolmb_ereg_match(string$pattern,string$string[,string$option=msr])Aregularexpressionmatchforamultibytestring

PHP:mb_encoding_aliases()的用法_mbstring函数 mb_encoding_aliases(PHP5=5.3.0)mb_encoding_aliasesGetaliasesofaknownencodingtype说明arraymb_encoding_aliases(string$encoding)Returnsanarrayofaliasesforaknownencodingtype.参数encodingTheencodingtyp

PHP:mb_substr()的用法_mbstring函数 mb_substr(PHP4=4.0.6,PHP5)mb_substr获取字符串的部分说明stringmb_substr(string$str,int$start[,int$length=NULL[,string$encoding=mb_internal_encoding()]])根据字符数执行一个多字节安

本文链接地址:https://www.jiuchutong.com/biancheng/275033.html 转载请保留说明!

上一篇:PHP:mb_regex_set_options()的用法_mbstring函数

下一篇:PHP:mb_ereg_match()的用法_mbstring函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络