欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

怎么把一个多维数组,按指定模式排列

程序员文章站 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