位置: 编程技术 - 正文

PHP:mb_ereg_search_pos()的用法_mbstring函数

编辑:rootadmin
mb_ereg_search_pos

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

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

(PHP 4 >= 4.2.0, PHP 5)

mb_ereg_search_pos — Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string

说明 array mb_ereg_search_pos ([ string $pattern [, string $option = "ms" ]] )

Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string

The string for match is specified by mb_ereg_search_init(). If it is not specified, the previous one will be used.

参数

pattern PHP:mb_ereg_search_pos()的用法_mbstring函数

The search pattern.

option

The search option.

返回值

An array containing two elements. The first element is the offset, in bytes, where the match begins relative to the start of the search string, and the second element is the length in bytes of the match.

If an error occurs, FALSE is returned.

注释

Note:

mb_regex_encoding()指定的内部编码或字符编码将会当作此函数用的字符编码。

参见

mb_regex_encoding() - Set/Get character encoding for multibyte regex mb_ereg_search_init() - Setup string and regular expression for a multibyte regular expression match

PHP:mb_ereg_search_init()的用法_mbstring函数 mb_ereg_search_init(PHP4=4.2.0,PHP5)mb_ereg_search_initSetupstringandregularexpressionforamultibyteregularexpressionmatch说明boolmb_ereg_search_init(string$string[,string$pattern[,string$option=msr]

PHP:mb_ereg_replace()的用法_mbstring函数 mb_ereg_replace(PHP4=4.2.0,PHP5)mb_ereg_replaceReplaceregularexpressionwithmultibytesupport说明stringmb_ereg_replace(string$pattern,string$replacement,string$string[,string$option=msr])Scansstringfo

PHP:mb_ereg_replace_callback()的用法_mbstring函数 mb_ereg_replace_callback(PHP5=5.4.1)mb_ereg_replace_callbackPerformaregularexpresssionseachandreplacewithmultibytesupportusingacallback说明stringmb_ereg_replace_callback(string$pattern,callable$call

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

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

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

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

鄂ICP备2023003026号

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

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