mb_eregi_replace
(PHP 4 >= 4.2.0, PHP 5)
mb_eregi_replace — Replace regular expression with multibyte support ignoring case
說明
string mb_eregi_replace ( string $pattern
, string $replace
, string $string
[, string $option
= "msri" ] )
Scans string
for matches to pattern
, then replaces the matched text with replacement
.
參數(shù)
pattern
The regular expression pattern. Multibyte characters may be used. The case will be ignored.
replace
The replacement text.
string
The searched string.
option
option
has the same meaning as in mb_ereg_replace().
返回值
The resultant string or FALSE
on error.
注釋
Note:
mb_regex_encoding() 指定的內(nèi)部編碼或字符編碼將會當(dāng)作此函數(shù)用的字符編碼。
Warning
處理非信任的輸入時(shí)從不使用 e 修飾符,就不會轉(zhuǎn)碼(即調(diào)用 preg_replace())。不注意這些會很可能會導(dǎo)致應(yīng)用程序引發(fā)遠(yuǎn)程代碼執(zhí)行的漏洞。
參見
mb_regex_encoding() - Set/Get character encoding for multibyte regex mb_ereg_replace() - Replace regular expression with multibyte support