Menu Riverview Church

STR_IREPLACE

Case-insensitive version of str_replace()

SYNTAX

str_ireplace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] ) : mixed

PARAMETERS

search

The value being searched for, otherwise known as the needle. An array may be used to designate multiple needles.

replace

The replacement value that replaces found search values. An array may be used to designate multiple replacements.

subject

The string or array being searched and replaced on, otherwise known as the haystack. If subject is an array, then the search and replace is performed with every entry of subject, and the return value is an array as well.

count

If passed, this will be set to the number of replacements performed.

RETURN

Returns a string or an array of replacements.

EXAMPLES

SEARCH REPLACE SUBJECT

replace replace replace

COUNT

3

1

replace replace replace

2

replace1 replace2 replace3

3

line<br>line<br>line<br>line

4

f

4

apearpearle pear

PHP