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

求个PHP列出周日期代码,该怎么解决

2024/4/17 13:15:25发布6次查看
求个php列出周日期代码
看图片吧,这种列表用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)) . '
';
}
该用户其它信息

VIP推荐

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