且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在网站上显示上一个(过去)星期五的日期

更新时间:2023-01-28 22:43:38

这里是一个类似问题的答案(实际上是一样的,但针对星期二):如何在 php 中获取上周(星期二或任何其他日期)的日期?

Here is an answer to a similar question (actually the same but for tuesday) : how to get the date of last week's (tuesday or any other day) in php?

strtotime('last friday') 应该可以工作.