← All docs

mb_regex_set_options()

Reads multibyte regex options, or changes them and returns the previous canonical option string.

mb_regex_set_options()

function mb_regex_set_options(?string $options = null): string

Reads multibyte regex options, or changes them and returns the previous canonical option string.

Parameters:

  • $options (?string), default null, optional

Returns: string

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mb_regex_set_options is implemented in the compiler, see the internals page.