Home  >  Article  >  Backend Development  >  求一个时间戳

求一个时间戳

WBOY
WBOYOriginal
2016-06-23 13:58:30987browse

请大神,写一条php语句,打印:

“下周一10:20”的时间戳


回复讨论(解决方案)

echo strtotime(date('Y-m-d 10:20:00', strtotime('next week')));

echo strtotime(date('Y-m-d 10:20:00', strtotime('next week')));



呵呵,这个是以现在的时间加一周的结果;直接执行后,是下周二的10:20

是吗?
我有忽悠你的必要吗?

sorry,我的错,给分了!

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
Previous article:这JB代码到底想干嘛?Next article:将变量数组重置