str_replace() replaces all instances of a string within another string. $string = "Site contents copyright 2003."; $string .= "The 2003 Guide"; print str_replace("2003","2004",$string);?>