I have an array that looks like this:
[867324] [id] => 867324 [name] => Example1 [345786] [id] => 345786 [name] => Example2 [268531] [id] => 268531 [name] => Example3
So, as you can see, the first elements are not in a specific order. For example, you can simply consider their random numbers. The final result that I would like to get is as follows:
[0] [id] => 867324 [name] => Example1 [1] [id] => 345786 [name] => Example2 [2] [id] => 268531 [name] => Example3
I tried to explode, but obviously I have to do something wrong. Any help is appreciated!
source share