I would use references instead of recursion, but maybe someone will answer with a recursive function. If you know the name
key then put it in the path. If not then the reset
will get the first item:
$path = array('properties', 0, 'properties', 1, 'properties', 0);
$result =& $data;
foreach($path as $key) {
$result =& $result[$key];
}
echo reset($result);
// or if you want array('name' => 'MARK')
print_r($result);