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

WBOY
Release: 2016-06-13 11:33:28
Original
841 people have browsed it

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

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

php
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template