Home  >  Article  >  Backend Development  >  str_replace use_PHP tutorial

str_replace use_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:36:41717browse

$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

www.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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn