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