2013-05-30 216 views

回答

7
date('Y-m-d', strtotime('last sunday +1 day', strtotime('2013-05-29'))); 

last sunday +1 day因为last monday将返回以前周的周一如果$时间戳实际上星期一了。

在第二步中解析原始日期值2013-05-29,因为所有作为一个参数合并在一起效果不佳(绝对和相对日期值的混合是strtotime不太喜欢的东西)。

相关问题