php 获得上周数据

$lastMondy = date('Y-m-d', strtotime('-2 sunday +1 days', time()));
$lastSundy = date('Y-m-d', strtotime('-1 sunday', time()));
原文地址:https://www.cnblogs.com/matengfei123/p/10145086.html