位置: 编程技术 - 正文
推荐整理分享PHP:mb_ereg()的用法_mbstring函数(php?ms=0&qgg=&_wv=3),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:php
,php
,php -m,php-bcmath,php
,php-bcmath,php?ms=0&qgg=&_wv=3,php mb_convert_encoding,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4 >= 4.2.0, PHP 5)
mb_ereg — Regular expression match with multibyte support
说明 int mb_ereg ( string $pattern , string $string [, array $regs ] )Executes the regular expression match with multibyte support.
参数pattern
The search pattern.
stringThe search string.
regsContains a substring of the matched string.
返回值Executes the regular expression match with multibyte support, and returns 1 if matches are found. If the optional regs parameter was specified, the function returns the byte length of matched part, and the array regs will contain the substring of matched string. The function returns 1 if it matches with the empty string. If no matches are found or an error happens, FALSE will be returned.
注释Note:
mb_regex_encoding()指定的内部编码或字符编码将会当作此函数用的字符编码。
参见mb_regex_encoding() - Set/Get character encoding for multibyte regex mb_eregi() - Regular expression match ignoring case with multibyte support
PHP:mb_ereg_search()的用法_mbstring函数 mb_ereg_search(PHP4=4.2.0,PHP5)mb_ereg_searchMultibyteregularexpressionmatchforpredefinedmultibytestring说明boolmb_ereg_search([string$pattern[,string$option=ms]])Performsamultibyteregularexpression
PHP:mb_ereg_search_setpos()的用法_mbstring函数 mb_ereg_search_setpos(PHP4=4.2.0,PHP5)mb_ereg_search_setposSetstartpointofnextregularexpressionmatch说明boolmb_ereg_search_setpos(int$position)mb_ereg_search_setpos()setsthestartingpointofamatchform
PHP:mb_ereg_search_regs()的用法_mbstring函数 mb_ereg_search_regs(PHP4=4.2.0,PHP5)mb_ereg_search_regsReturnsthematchedpartofamultibyteregularexpression说明arraymb_ereg_search_regs([string$pattern[,string$option=ms]])Returnsthematchedpartofamult
友情链接: 武汉网站建设