str_ireplace()
function str_ireplace(string $search, string $replace, string $subject, int $count = null): string
Case-insensitive version of str_replace().
Parameters:
$search(string)$replace(string)$subject(string)$count(int), defaultnull, optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/str_ireplace.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how str_ireplace is implemented in the compiler, see the internals page.