I have an array in PHP which is multidimensional. It can have any number of levels as it is generated dynamically. None of the arrays contained in the array are empty and all have keys set.
I am looking for a way to get all array keys into a new array. I know how to do it on a single layered array but I am stuck as I don't know how many levels deep the array will go, it could be a single layered array itself or a 20 level multi dimensional array?
Thanks...