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" ?> This is certainly a topic for another RFC, but this functionality will be useful in PHP.