阅读背景:

比较两个日期PHP之间的差异

来源:互联网 

I am trying to compare to date to figure out how much time is between them, which I know how to do, date_diff(), but I want to then compare the time between the dates and if it is greater than 7 days do something and if not do something else. I think it sounds easy and I know there are probably fairly simple solutions to do so but I am just not a fan of dates and comparisons. Here is a snippet of what I got so far as it is just one case of a switch statement so the rest are basically identical.I am trying to compare to date to figure out ho




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: