Ashley, rojohound, newt
How can i store a sub-array inside the key of a main array. In simpler words, how can i store an array inside an array?
Have been looking extensively in the forums searching for an answer, with no findings.
Many thanks in advanced...
Well, you could use JSON to store a sub-array in another one. However, you won't be able to easily access its values once stored. You would need to load it in a "temporary" array, edit it, and store it back as JSON.
Develop games in your browser. Powerful, performant & highly capable.
You could try tokenat()
But as Magistross pointed out it's not easy to edit.
You could just store the uid of one array in another. Then you'd pick the other array by uid before using it.
Or taking the idea further you could use iid's instead. Which would still require you to pick the array before setting values, but you could then get values with: