Basically this is what I have
$foo = array(
'bar' = array(
'baz' = array(
5
)
),
);
And I have another array that holds the keys
$keys = array('bar','baz',0);
Is there a way I can get the value of the first array with the keys in the second array? I can probably try to write some recursive function that will end up getting the job done, but I was wondering if there was a neat way of doing this by using array functions ( not very good at those ) or something.. ?
Note: keys may not always be 3.
array_reducethat takes two array parameters and walks through both of them, a task too specialized to make it a built-in function.