← All docs
mb_strrpos()
Finds the last character position of an encoded substring, or returns false.
mb_strrpos()
function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false
Finds the last character position of an encoded substring, or returns false.
Parameters:
$haystack(string)$needle(string)$offset(int), default0, optional$encoding(?string), defaultnull, optional
Returns: int|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_strrpos.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_strrpos is implemented in the compiler, see the internals page.