怎么把一个多维数组,按指定模式排列
程序员文章站
2024-01-12 10:25:52
...
怎样把一个多维数组,按指定模式排列
[code=PHP]Array
(
[0] => Array
(
[0] => 63
[cate_id] => 63
[1] => 34
[pid] => 34
[2] => 奥迪A6L新型C6原厂资料
[cate_name] => 奥迪A6L新型C6原厂资料
[3] => 0
[cate_size] => 0
[4] => 0
[show_order] => 0
[5] => 0
[is_hidden] => 0
)
[1] => Array
(
[0] => Array
(
[0] => 64
[cate_id] => 64
[1] => 63
[pid] => 63
[2] => 奥迪A6L新型C6原厂资料电路图
[cate_name] => 奥迪A6L新型C6原厂资料电路图
[3] => 0
[cate_size] => 0
[4] => 0
[code=PHP]Array
(
[0] => Array
(
[0] => 63
[cate_id] => 63
[1] => 34
[pid] => 34
[2] => 奥迪A6L新型C6原厂资料
[cate_name] => 奥迪A6L新型C6原厂资料
[3] => 0
[cate_size] => 0
[4] => 0
[show_order] => 0
[5] => 0
[is_hidden] => 0
)
[1] => Array
(
[0] => Array
(
[0] => 64
[cate_id] => 64
[1] => 63
[pid] => 63
[2] => 奥迪A6L新型C6原厂资料电路图
[cate_name] => 奥迪A6L新型C6原厂资料电路图
[3] => 0
[cate_size] => 0
[4] => 0