← All docs
strripos()
Finds the numeric position of the last case-insensitive occurrence of a substring.
strripos()
function strripos(string $haystack, string $needle, int $offset = 0): mixed
Finds the numeric position of the last case-insensitive occurrence of a substring.
Parameters:
$haystack(string)$needle(string)$offset(int), default0, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/strripos.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how strripos is implemented in the compiler, see the internals page.