Changes

Working with Strings and Text in PHP

153 bytes added, 17:31, 4 June 2007
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''