// 获取连续7天的日期和对应的星期
$time = time();
$weekName=array('周日','周一','周二','周三','周四','周五','周六');
for ($i=0;$i<7;$i++){
$data[$i]['time'] = date('m/d',strtotime( '+'. $i .' days',$time));
$data[$i]['week'] = $weekName[date("w",strtotime($data[$i]['time']))];
if($i == 0){
$data[$i]['week'] = '今日';
}
}
$result['date'] = $data;