← 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), defaultnull, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/mb_regex_set_options.rs).
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.