PHP One level deeper in array each loop made

前端 未结 4 2101
旧巷少年郎
旧巷少年郎 2021-01-15 17:49

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

$ar         


        
4条回答
  •  礼貌的吻别
    2021-01-15 18:07

    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?

提交回复
热议问题