跳转到主要内容

mb-ereg-replace

mb_ereg_replace

Replace regular expression with multibyte support

ENTITY

string

false

null

mb_ereg_replace

string

pattern

string

replacement

string

string

string

null

options

ENTITY

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

ENTITY

pattern
The regular expression pattern.

Multibyte characters may be used in pattern.

replacement
The replacement text.

string
The string being checked.

options
The search option. See mb_regex_set_options for explanation.

ENTITY

The resultant string on success, or ENTITY on error. If string is not valid for the current encoding, ENTITY is returned.

ENTITY

ENTITY ENTITY
8.0.0 options is nullable now.
7.1.0 The function checks whether string is valid for the current encoding.
7.1.0 The e modifier has been deprecated.

ENTITY ENTITY ENTITY

ENTITY

mb_regex_encoding, mb_eregi_replace