← All docs

str_ireplace()

Case-insensitive version of str_replace().

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), default null, optional

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how str_ireplace is implemented in the compiler, see the internals page.