2012-05-17 25 views

回答

10

嘗試使用其他strtotime

$first = date('Y-m-d',strtotime("last monday")); 
$last = date('Y-m-d',strtotime("next sunday")); 

例子

strtotime('monday this week'); 
strtotime('sunday this week'); 
+0

很不錯的答案!謝謝 – Karem