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