位置: 编程技术 - 正文
推荐整理分享PHP:mb_ereg_replace()的用法_mbstring函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4 >= 4.2.0, PHP 5)
mb_ereg_replace — Replace regular expression with multibyte support
说明 string mb_ereg_replace ( string $pattern , string $replacement , string $string [, string $option = "msr" ] )Scans string for matches to pattern, then replaces the matched text with replacement
参数pattern
The regular expression pattern.
Multibyte characters may be used in pattern.
replacementThe replacement text.
stringThe string being checked.
option Matching condition can be set by option parameter. If i is specified for this parameter, the case will be ignored. If x is specified, white space will be ignored. If m is specified, match will be executed in multiline mode and line break will be included in .. If p is specified, match will be executed in POSIX mode, line break will be considered as normal character. If e is specified, replacement string will be evaluated as PHP expression. 返回值The resultant string on success, or FALSE on error.
注释Note:
mb_regex_encoding()指定的内部编码或字符编码将会当作此函数用的字符编码。
Warning处理非信任的输入时从不使用e 修饰符,就不会转码(即调用 preg_replace())。不注意这些会很可能会导致应用程序引发远程代码执行的漏洞。
参见mb_regex_encoding() - Set/Get character encoding for multibyte regex mb_eregi_replace() - Replace regular expression with multibyte support ignoring case
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_getregs()的用法_mbstring函数 mb_ereg_search_getregs(PHP4=4.2.0,PHP5)mb_ereg_search_getregsRetrievetheresultfromthelastmultibyteregularexpressionmatch说明arraymb_ereg_search_getregs(void)Retrievetheresultfromthelastmultibyteregu
PHP:mb_ereg_search_getpos()的用法_mbstring函数 mb_ereg_search_getpos(PHP4=4.2.0,PHP5)mb_ereg_search_getposReturnsstartpointfornextregularexpressionmatch说明intmb_ereg_search_getpos(void)Returnsthestartpointforthenextregularexpressionmatch.参数
标签: PHP:mb_ereg_replace()的用法_mbstring函数
本文链接地址:https://www.jiuchutong.com/biancheng/275027.html 转载请保留说明!友情链接: 武汉网站建设