mb_ereg_search_pos() - mb函数(多字节字符串转化库)
mb_ereg_search_pos()
(PHP 4 >= 4.2.0, PHP 5, PHP 7)
Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string
说明
mb_ereg_search_pos([string $pattern[,string $option= "ms"]]): arrayReturns 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.
参数
$patternThe search pattern.
$optionThe search option. See mb_regex_set_options() for explanation.
返回值
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 regexmb_ereg_search_init()
Setup string and regular expression for a multibyte regular expression match
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!