我有一个看起来像这样的数组:
[867324]
[id] => 867324
[name] => Example1
[345786]
[id] => 345786
[name] => Example2
[268531]
[id] => 268531
[name] => Example3
如您所见,第一个元素没有任何特定的顺序。出于示例的目的,您可以将它们视为随机数。我想得到的最终结果是:
[0]
[id] => 867324
[name] => Example1
[1]
[id] => 345786
[name] => Example2
[2]
[id] => 268531
[name] => Example3
我试过爆炸,但显然我做错了什么。任何帮助表示赞赏!