<? $string = "this is a test"; $newstring = str_replace("is", "is not", $string); print $newstring; ?>