← All docs
mb_ereg_search_pos()
Returns the next multibyte regex match byte offset and length, or false.
mb_ereg_search_pos()
function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false
Returns the next multibyte regex match byte offset and length, or false.
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_pos.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg_search_pos is implemented in the compiler, see the internals page.