← All docs
mb_ereg_search_regs()
Returns the next multibyte regex match and captured groups, preserving numeric and named keys.
mb_ereg_search_regs()
function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false
Returns the next multibyte regex match and captured groups, preserving numeric and named keys.
Parameters:
$pattern(?string), defaultnull, optional$options(?string), defaultnull, optional
Returns: array|false
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_regs.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg_search_regs is implemented in the compiler, see the internals page.