【发布时间】:2016-02-10 12:11:53
【问题描述】:
如果现在是 2016-02-10 我需要返回 2015-07-01(或 2015-07-10)
strtotime('july'); // returns 2016-07-10
strtotime('last july'); // does not work
strtotime('july 2015'); // I have not '2015' for query.
//Only if compare date (month) now and month needed. In looks not realy straight way.
【问题讨论】: