How can I search for the word "OR" inside of a string and replace it with a blank space. It seems like this is a reserved word because it doesn't remove any of the "ORs" in my string. How can I get them all out? Thanks!
Read up on string replace in the documentation. It should do everything you need.
Big Din K.R.
<? $string = 'Do you prefer coffee or tea?'; $string = str_replace ('or', ' ', $string); echo $string; ?>
returns "Do you prefer coffee tea?"