I need to merge several arrays into a single array. The best way to describe what I\'m looking for is \"interleaving\" the arrays into a single array.
For example
I would just use array_merge()
, but that obviously depends on what exactly you do.
This would append those arrays to each other, while elements would only be replaced when they have the same non-numerical key. And that might not be a problem for you, or it might be possible to be solved because of attribute order, since the contents of the first arrays' elements will be overwritten by the later ones.