直接贴代码:

<?php$first_Sat=date('Y-m-d',strtotime('thisSaturday',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);

代码书写格式,以及效率方面,自己去优化