Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48637 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77801 invoked from network); 4 Jun 2010 01:19:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2010 01:19:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:65495] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/4C-07323-AB4580C4 for ; Thu, 03 Jun 2010 21:19:55 -0400 Received: by bwz15 with SMTP id 15so267729bwz.29 for ; Thu, 03 Jun 2010 18:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=MiyBKHeiiUrf8VodyUL9V8D7EBRPwWRRF44HeXG+T3A=; b=dSJm+zdUKHpNasmCyZfa3BopX9gZRbh9f8KV5oATf0yoVyWP8oZd15Iq7dEWhj5g04 NAKwi9MLvcprDQ3Mmo4yoCW1nf/XZw34L4Tvaq0J8yKdGJG/oLnhCexARXEZ9J45NxZP HJvb0v+ksJKXQkN8my72/6mQse6vrY+t87C2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=TAlrnbTcu7saXaFM2AXZmOe52awPKhvpD8Dr/V2I9noOe9J5N7PDS7L4/2+qajspz2 a3yRB/7v5nhsZl5zFKfs2ho0yiPo/PLslIGoPdy40C8Um7Cc8H2ZSun5wRfnZP06fd/i VOCItqFeJy2Myb3O6deFdjWmCu/5+IzR/TuX0= MIME-Version: 1.0 Received: by 10.204.73.195 with SMTP id r3mr3456288bkj.147.1275614391739; Thu, 03 Jun 2010 18:19:51 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.204.60.206 with HTTP; Thu, 3 Jun 2010 18:19:51 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Jun 2010 03:19:51 +0200 X-Google-Sender-Auth: xWvzYwy8O0tbMGCOBjW4rU-zUqE Message-ID: To: Tig Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Suggestion: echo function(var)[0]; From: kalle@php.net (Kalle Sommer Nielsen) Hi Tig 2010/6/4 Tig : > Would be at all possible to implement this kind of shortcut? Its called array-dereferencing and it was proposed countless times, including by myself. There is an RFC for this[1] and it was planned on the old PHP6 todo at the PDT[2]. [1] http://wiki.php.net/rfc/functionarraydereferencing [2] http://wiki.php.net/summits/pdmnotesmay09#php_6 (see point #13) -- regards, Kalle Sommer Nielsen kalle@php.net