> I always wanted to have an analog XPath to access the array elements. > Something like:
> <?php > $array = ['x' => ['p' => ['a' => ['t' => ['h' => 'value']]]]]; > $xpath = ['x', 'p', 'a', 't', 'h']; > $value = $array[...$xpath]; > var_dump($value); // string(5) "value" > ?> What would happen if some key from `$xpath` is undefined on the multidimensional `$array`? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php