str_replace使用

   

$begintime=str_replace("-", "","2014-03-05");        (需要替换的字符串,换成字符串,需要被替换的字符串)

输出:20140305

 

posted on 2014-03-05 14:56  张扬个性,敢为天下先  阅读(361)  评论(0编辑  收藏  举报