Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81596 invoked from network); 23 Nov 2014 23:33:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2014 23:33:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.195 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.223.195 mail-ie0-f195.google.com Received: from [209.85.223.195] ([209.85.223.195:58535] helo=mail-ie0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/F0-05261-CB862745 for ; Sun, 23 Nov 2014 18:07:40 -0500 Received: by mail-ie0-f195.google.com with SMTP id rd18so1304451iec.2 for ; Sun, 23 Nov 2014 15:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wLcl9J8PIVFem+E0nia8CnVDiamsYmGCCz+o6WayOjE=; b=zhpOc7xliOQndGV6wZCSHLBeqdO+KRUEi1tjFA7e6cNZVR80WGrJCxWWyQ8TDMq0pF +Ne35GFypCuQRPkse+cCsji4+VjvMyt4sUtxf7uROdxbBhA+Xx2MlgZFFmkkvlxNyGE1 oZvH8tMBnF2crjdJMUWj0waFcSnZkIH9gc73Cal384nY8n04MIv9bbjuKxfEi5VbCZ6Q pZuG5EBJ5q2ZZcJzcPSaZkfXRF7jLrkIOlM5KVsIJM2NhsHQQP12TzHCxbNdFHBRE9wh LPB9fF3Ultkbz6zXFxhNaoGlQ/DXfx9hkKJl27MjcDucWKt8o9PVtaJeULHB2ob0kJND fGGw== MIME-Version: 1.0 X-Received: by 10.107.41.148 with SMTP id p142mr13318533iop.64.1416784057886; Sun, 23 Nov 2014 15:07:37 -0800 (PST) Received: by 10.50.70.2 with HTTP; Sun, 23 Nov 2014 15:07:37 -0800 (PST) In-Reply-To: <545D0611.9010206@gmail.com> References: <545D0611.9010206@gmail.com> Date: Mon, 24 Nov 2014 01:07:37 +0200 Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1141d0747e6f6205088ebe20 Subject: Re: [PHP-DEV] [RFC] Additional splat operator usage From: ua.san.alex@gmail.com ("S.A.N") --001a1141d0747e6f6205088ebe20 Content-Type: text/plain; charset=UTF-8 I always wanted to have an analog XPath to access the array elements. Something like: ['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. --001a1141d0747e6f6205088ebe20--