Name
str_ireplace
Synopsis
mixed str_ireplace(mixedsearch, mixedreplace, mixedstring[, int &count])
Performs a case-insensitive search for all occurrences of
search in string
and replaces them with replace. If all
three parameters are strings, a string is returned. If
string is an array, the replacement is
performed for every element in the array and an array of results is
returned. If search and
replace are both arrays, elements in
search are replaced with the elements in
replace with the same numeric indices.
Finally, if search is an array and
replace is a string, any occurrence of any
element in search is changed to
replace. If supplied,
count is filled with the number of
instances replaced.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access