Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79114 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96361 invoked from network); 24 Nov 2014 00:21:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2014 00:21:14 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:50590] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/71-23429-9F972745 for ; Sun, 23 Nov 2014 19:21:13 -0500 Received: by mail-la0-f50.google.com with SMTP id pv20so6707385lab.23 for ; Sun, 23 Nov 2014 16:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=6M6L2AQqTHAWXvIoLbEnvv8MKnBWJZoJO13dM66Taz0=; b=lcH+IbaZemRoujtsfmEeR+729pRtUL1aKTl3GgzLObKVDXTxr/wn7i/UESUTOt7/qn vDKO25SN+Gs/egaw1ono/lq9wC7L6nTlOQQA4sa4oBsPwWKmqE+lzkOuywsyFkD3ex4j DHzWCkWN9GqtZdpiXhGL0fexhAYhzHkAo3h5Nb5AKHJCtGJX5N/4vxf8rjM4BwpPbt4G w6pWhxB8l30g/A2GWc/zQ5edmfiL3qe/+1QR6sJwGk4avrwloCw03luJXm5azNr0EHza WWhUkG+R8PfH3RBgvxNVwD/sQM/rsqSxpmqIMaKonLvtmROm7uyrtZFirLMxj52hgtvi rxyw== X-Received: by 10.152.21.167 with SMTP id w7mr17726583lae.70.1416788470593; Sun, 23 Nov 2014 16:21:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.145.138 with HTTP; Sun, 23 Nov 2014 16:20:50 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: References: <545D0611.9010206@gmail.com> Date: Sun, 23 Nov 2014 21:20:50 -0300 Message-ID: To: "S.A.N" Cc: Rowan Collins , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Additional splat operator usage From: marcio.web2@gmail.com (Marcio Almada) > I always wanted to have an analog XPath to access the array elements. > Something like: > $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`?