· 参考 https://www.jb51.net/article/80074.htm
$final = [];
if ($query){
foreach ($query as &$val){
$val['created_time'] = date('Y-m-d',$val['created_time']);
$final[$val['created_time']][] = $val;
}
}
网友评论