Perhaps you could give me an example of "adding a new dimension in each loop".
What I'm trying to do is to create a tree structure. Basically, I have a bunch of topics/sub-topics that are divided by colons. Example:
Political Parties:Republican
Political Parties:Democrat
Conspiracies:Assassinations:JFK
Conspiracies:Assassinations:Martin Luther King, Jr.
Conspiracies:UFOs
What I want is to take these strings and create an array tree, so the result would be:
'Political Parties'
'Republican'
'Democrat'
'Conspiracies'
'Assassinations'
'JFK'
'MLK'
'UFOs'
If you can think of a better way to make this tree from the data above, I'm all for suggestions!