Ok this is what I am trying to do. It can be looked at as a tree.
I am receiving a top level value.
I wrote a function which adds its children values to an array.
Now, i want to end up with an array of all the elements in the tree. ie: all the children of all the children of the top level value.
I dont know how many levels there is.
I am sure I did this is school... but I can't seem to figure it out again.
Could someone gimme a hand?