$n = date("Y-m-d");$w=date('w',strtotime($n));$beginweek=strtotime("$n -".($w ? $w - 1 : 6).' days');$endweek=$beginweek + 86400*7-1;echo $beginweek;echo $endweek;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号