← All docs
mb_ereg_match()
Tests whether a regex pattern matches the beginning of a string (multibyte).
mb_ereg_match()
function mb_ereg_match(string $pattern, string $subject, ?string $options = null): bool
Tests whether a regex pattern matches the beginning of a string (multibyte).
Parameters:
$pattern(string)$subject(string)$options(?string), defaultnull, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/regex/mb_ereg_match.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg_match is implemented in the compiler, see the internals page.