$archive = array(
0=>array(
"year"=>2018,
"articles"=>array(
array("mon"=>5,"article"=>array("后来的我们")),
array("mon"=>6,"article"=>array("后来的我们 2"))
)),
1=>array(
"year"=>2017,
"articles"=>array(
array("mon"=>3,"article"=>array("后来的我们 3")),
array("mon"=>4,"article"=>array("后来的我们 4"))
)),
);
实在是不知道怎么拼起来,求大佬指点!
1
imn1 2018-06-18 16:04:04 +08:00
这年头居然没有 tag 字段?
|
2
hubqin 2018-06-18 16:55:03 +08:00
思路:先按年份归类,然后每个年份按月归类
|