Hello everyone, here is what I'm trying to do:
I want to create a multidimensional array of this form:
Array([0] => a, [1] => Array([0] => Array([0] => d, [1] => e)), [1] => c, [2] => d))
Where for every element in the array, another element or array is inserted after it (pushing the others one index) based on a database query.
How can I accomplish this? help! :)
In the end I want to make a nested list, but I need an array of that shape.