← All docs
stripos()
Finds the numeric position of the first case-insensitive occurrence of a substring.
stripos()
function stripos(string $haystack, string $needle, int $offset = 0): mixed
Finds the numeric position of the first 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/stripos.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stripos is implemented in the compiler, see the internals page.