I\'m trying to loop through one array, adding a new level to another array each time. Let me illustrate - variable $arr\'s values are different each time
You basically want to see how deep an multi-dimensional array is, right? If so this should be helpful: Is there a way to find out how "deep" a PHP array is?