我正在敲我的头一点点strtotime,并试图找出如何得到我需要实现的。 生病写在逻辑我不需要我需要的PHP。 $today = today
$lastUpdated = query from DB
if today is >= $lastUpdated(next week)
do something
else do something else
基本上只允许有人每周提交一次表格,
如果现在是2016年2月10日 我需要返回2015年7月1日(或2015年7月10日) strtotime('july'); // returns 2016-07-10
strtotime('last july'); // does not work
strtotime('july 2015'); // I have not '2015' for query.
//Only if compa
我想了解最新功能strtotime()的以下行为: strtotime(1420066800)回报false,符合市场预期。 strtotime(1451602800)返回26197048320!但预计false为1451602800不是有效的日期和时间格式。 (与new DateTime(1451602800)同样的事情也一样) 我读了整个Supported Date and Time Form