← All docs
mb_ereg()
Searches a multibyte string and optionally writes numeric and named captures by reference.
mb_ereg()
function mb_ereg(string $pattern, string $string, mixed $matches = null): bool
Searches a multibyte string and optionally writes numeric and named captures by reference.
Parameters:
$pattern(string)$string(string)$matches(mixed), passed by reference, 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.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg is implemented in the compiler, see the internals page.