$rule = array(-2, -3, -1, -1, -1, -1, -1); //你没有说星期六、星期天要怎么处理,我自作主张的给你加上了 $t = strtotime($bule[date('w'] . ' day'); //这就是你要的时间戳 //如果只要精确到日,再 $t = strtotime('Y-m-d', $t));
$rule = array(-2, -3, -1, -1, -1, -1, -1); //你没有说星期六、星期天要怎么处理,我自作主张的给你加上了 $t = strtotime($bule[date('w'] . ' day'); //这就是你要的时间戳 //如果只要精确到日,再 $t = strtotime(date('Y-m-d', $t));
21,887
社区成员
140,363
社区内容
加载中
试试用AI创作助手写篇文章吧