Re: [RFC] Additional splat operator usage

From: Date: Mon, 24 Nov 2014 00:20:50 +0000
Subject: Re: [RFC] Additional splat operator usage
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-79114@lists.php.net to get a copy of this message
> 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?

« previous php.internals (#79114) next »