34,333
edits
Changes
→Replacing All Instances of a Word in a PHP String
<tt>Original String = There is a cat in the tree, and I think it is my cat!</tt><br>
<tt>New String = There was a dog in the car, and I think it was my dog!</tt>
A case insensitive search and replace can similarly be performed using the ''eregi_replace'' function which takes the same arguments as ''str_replace''