mb_eregi_replace

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

mb_eregi_replaceReplace regular expression with multibyte support ignoring case

说明

mb_eregi_replace ( string $pattern , string $replace , string $string [, string $option = "msri" ] ) : string

Scans string for matches to pattern, then replaces the matched text with replacement.

参数

pattern

The regular expression pattern. Multibyte characters may be used. The case will be ignored.

replace

The replacement text.

string

The searched string.

option
The search option. See mb_regex_set_options() for explanation.

返回值

The resultant string or FALSE on error.

更新日志

版本 说明
7.1.0 The e modifier has been deprecated.

注释

Note:

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

Warning

处理非信任的输入时从不使用 e 修饰符,就不会转码(即调用 preg_replace())。不注意这些会很可能会导致应用程序引发远程代码执行的漏洞。

参见

相关文章
php 多字节字符串 函数 convert kana one from another zen kaku han kaku and more php 多字节字符串 函数 转换一个或多个变量的字符编码php 多字节字符串 函数 regular expression match for multibyte stringphp 多字节字符串 函数 perform a regular expression search and replace with multibyte support using a callbackphp 多字节字符串 函数 replace regular expression with multibyte supportphp 多字节字符串 函数 returns start point for next regular expression matchphp 多字节字符串 函数 retrieve the result from the last multibyte regular expression matchphp 多字节字符串 函数 setup string and regular expression for a multibyte regular expression matchphp 多字节字符串 函数 returns position and length of a matched part of the multibyte regular expression for a predefined multibyte stringphp 多字节字符串 函数 returns the matched part of a multibyte regular expressionphp 多字节字符串 函数 set start point of next regular expression matchphp 多字节字符串 函数 multibyte regular expression match for predefined multibyte stringphp 多字节字符串 函数 regular expression match with multibyte supportphp 多字节字符串 函数 replace regular expression with multibyte support ignoring casephp 多字节字符串 函数 regular expression match ignoring case with multibyte supportphp 多字节字符串 函数 set/get character encoding for multibyte regexphp 多字节字符串 函数 set/get the default options for mbregex functionsphp 多字节字符串 函数 使字符串小写php 多字节字符串 函数 使字符串大写php pcre 函数 perform a regular expression search and replace using callbacks
关注编程学问公众号