代码写得很粗糙 $s='2013-05-">
时间:2021-07-01 10:21:17 帮助过:5人阅读
".date("Y年m月d日",strtotime($k." days"));echo "
";}?>
$s='2013-05-31';$current=date("Y-m-d");while($current>=$s){ $ar[]=$current; $current=date("Y-m-d",strtotime("$current -7 day"));} for($i=0;$i'.$ar[$i]."\n"; }
for($i=0,$t=-7; $i<20; $i++,$t-=7) { echo date('Y-m-d -> ', strtotime("$t day")); echo date('Y-m-d', strtotime(($t+7)."day")) . '
';}
谢谢各位啦...
for($i=0,$t=-7; $i<20; $i++,$t-=7) { echo date('Y-m-d -> ', strtotime("$t day")); echo date('Y-m-d', strtotime(($t+7)."day")) . '
';}