← All docs
mb_ereg_search_setpos()
Changes the progressive regex byte position, accepting negative offsets relative to the retained subject.
mb_ereg_search_setpos()
function mb_ereg_search_setpos(int $offset): bool
Changes the progressive regex byte position, accepting negative offsets relative to the retained subject.
Parameters:
$offset(int)
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_setpos.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_ereg_search_setpos is implemented in the compiler, see the internals page.