Home  >  Article  >  Backend Development  >  PHP 日期格式转换去除有关问题

PHP 日期格式转换去除有关问题

WBOY
WBOYOriginal
2016-06-13 12:38:50745browse

PHP 日期格式转换去除问题
界面传到PHP里面
2013-01-01 12:01:00
$endtime   = $this->input->get('endtime');
$endtime  = preg_replace('/[- :]/','',$endtime ); 
现在的格式
20130101120100

想实现的格式是
20130101000000
把时分秒替换为0 怎么实现? 大虾帮忙! 

php
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