$begintime=str_replace("-", "","2014-03-05"); (The string that needs to be replaced, change it to a string, the string that needs to be replaced)
Output: 20140305
http://www.bkjia.com/PHPjc/738507.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/738507.htmlTechArticle$begintime=str_replace("-", "","2014-03-05"); (replacement required string, replace it with a string, the string that needs to be replaced) Output: 20140305...