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