foreach ($res as $k => $v) { $res[$k]['time'] = date('Y-M-D',$v['time']); }
foreach ($res as $k => &$v) { $v['time'] = date('Y-M-D',$v['time']); }
array_walk($res,function (&$v) { $v['time'] = date('Y-M-D',$v['time']);//方式1 $v = array_merge($v,['time'=>date('Y-M-D',$v['time'])]);//方式二 });