取得本週的起始日與結束日– Bryce'S Note

文章推薦指數: 80 %
投票人數:10人

Bryce'S Note阿斯~~~~~$d = strtotime(“today”); $start_week = strtotime(“last sunday midnight”,$d); $end_week = strtotime(“next saturday”,$d); $start = date(“Y-m-d”,$start_week); $end = date(“Y-m-d”,$end_week); PHP手冊上有一個這個方法,用來返回指定日期的周一和周日strtotime獲取本周第一天和最後一天方法的BUG PHP手冊上有一個這個方法,用



請為這篇文章評分?