我想这就是你想要的。
$dayofweek = date('w', strtotime($date));$result = date('Y-m-d', strtotime(($day - $dayofweek).' day', strtotime($date)));
我想这就是你想要的。
$dayofweek = date('w', strtotime($date));$result = date('Y-m-d', strtotime(($day - $dayofweek).' day', strtotime($date)));