位置: 编程技术 - 正文
推荐整理分享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
The search pattern.
optionThe 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
标签: PHP:mb_ereg_search_pos()的用法_mbstring函数
本文链接地址:https://www.jiuchutong.com/biancheng/275025.html 转载请保留说明!友情链接: 武汉网站建设