← All docs
mb_ereg_search()
Searches the retained multibyte subject and advances the shared byte position.
mb_ereg_search()
function mb_ereg_search(?string $pattern = null, ?string $options = null): bool
Searches the retained multibyte subject and advances the shared byte position.
Parameters:
$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.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg_search is implemented in the compiler, see the internals page.