← All docs
mb_ereg_search_init()
Initializes the retained multibyte regex subject and optionally compiles a search pattern.
mb_ereg_search_init()
function mb_ereg_search_init(string $string, ?string $pattern = null, ?string $options = null): bool
Initializes the retained multibyte regex subject and optionally compiles a search pattern.
Parameters:
$string(string)$pattern(?string), defaultnull, optional$options(?string), defaultnull, optional
Returns: bool
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_ereg_search_init.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg_search_init is implemented in the compiler, see the internals page.