internet marketing in baltimore"; // The word we want to replace $oldWord = "internet marketing in baltimore"; // The new word we want in place of the old one $newWord = "baltimore internet marketing"; // Run through the text and replaces all occurrences of $oldText $text = str_replace($oldWord , $newWord , $text); // Display the new text //echo $text; ?>