代码片段:
$first_Sat=date('Y-m-d',strtotime('this Saturday',strtotime("2015-01-01")));
$Sat=array($first_Sat);
for($i=0;;$i+=7){
$current_time=strtotime($i.' days',strtotime($first_Sat));
if($current_time>strtotime('2015-12-31')){
break;
}
$Sat[]=date('Y-m-d',$current_time);
}
var_dump($Sat);