您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

求个PHP列出周日期代码

2025/12/28 2:38:08发布16次查看
看图片吧,这种列表用php怎么写呢?求高人帮帮忙~
回复讨论(解决方案)
代码写得很粗糙
$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 ', strtotime($t day)); echo date('y-m-d', strtotime(($t+7).day)) . '
';}

谢谢各位啦...
for($i=0,$t=-7; $i ', strtotime($t day)); echo date('y-m-d', strtotime(($t+7).day)) . '
';}

!~
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product