Home > Backend Development > PHP Tutorial > 04 April 2014 - 09:00 AM 转化成时间戳解决办法

04 April 2014 - 09:00 AM 转化成时间戳解决办法

WBOY
Release: 2016-06-13 11:53:42
Original
821 people have browsed it

04 April 2014 - 09:00 AM 转化成时间戳
将字符串 

04 April 2014 - 09:00 AM

   转化成时间戳 

strtotime不管用啊

求助~
------解决方案--------------------
那是你的日期格式不对,删掉就可以了
echo strtotime(str_replace('-', '', '04 April 2014 - 09:00 AM')); //1396573200

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