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

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

WBOY
WBOYOriginal
2016-06-13 11:53:42838browse

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

04 April 2014 - 09:00 AM

   转化成时间戳 

strtotime不管用啊

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

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