Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何找到当前日期的星期一日期和当前日期的星期日日期。
尝试
echo date('Y-m-d', strtotime('Monday this week')); echo date('Y-m-d', strtotime('Sunday this week'));
strtotime('next Monday')
我不知道您所说的“当前日期的星期一”和“当前日期的星期日”是什么意思。