mb_ereg_replace

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

mb_ereg_replaceReplace regular expression with multibyte support

说锟斤拷

mb_ereg_replace ( string $pattern , string $replacement , string $string [, string $option = "msr" ] ) : string

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.

replacement

The replacement text.

string

The string being checked.

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

锟斤拷锟斤拷值

The resultant string on success, or FALSE on error.

锟斤拷锟斤拷锟斤拷志

锟芥本 说锟斤拷
7.1.0 The e modifier has been deprecated.

注锟斤拷

Note:

mb_regex_encoding() 指锟斤拷锟斤拷锟节诧拷锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷虢拷岬憋拷锟斤拷撕锟斤拷锟斤拷玫锟斤拷址锟斤拷锟斤拷搿�

Warning

锟斤拷锟斤拷锟斤拷锟斤拷蔚锟斤拷锟斤拷锟绞憋拷硬锟绞癸拷锟� e 锟斤拷锟轿凤拷锟斤拷锟酵诧拷锟斤拷转锟诫(锟斤拷锟斤拷锟斤拷 preg_replace()锟斤拷锟斤拷锟斤拷注锟斤拷锟斤拷些锟斤拷芸锟斤拷芑岬硷拷锟接︼拷贸锟斤拷锟斤拷锟斤拷锟皆讹拷檀锟斤拷锟街达拷械锟铰╋拷锟斤拷锟�

锟轿硷拷