Get all keys from a multidimensional array

From http://stackoverflow.com/questions/11234852/how-to-get-all-the-key-in-multi-dimensional-array-in-php