I need to be able to take an array of unknown depth and get the keys from a specific dimension without knowing their values. For instance:
$deepArray = array(
"fooArray1_1" => array(
"fooArray2_1" => array(
"fooA" => "3",
"fooB" => "foo string example 1",
),
"fooArray2_2" => array(
"fooA" => "foo number 10",
"fooB" => "foo string example",
),
),
"fooArray1_2" => array(
"fooA" => "foo number 102",
"fooB" => "foo string example 3",
),
);
I would like to be able to get the key from $deepArray[0][1]
where in this instance should be fooArray2_2
.