Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26458 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3928 invoked by uid 1010); 10 Nov 2006 11:03:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3913 invoked from network); 10 Nov 2006 11:03:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2006 11:03:18 -0000 Authentication-Results: pb1.pair.com header.from=jan@horde.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jan@horde.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain horde.org designates 213.83.39.131 as permitted sender) X-PHP-List-Original-Sender: jan@horde.org X-Host-Fingerprint: 213.83.39.131 mail.ammma.de Linux 2.4/2.6 Received: from [213.83.39.131] ([213.83.39.131:27834] helo=ammma.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/B2-16675-47C54554 for ; Fri, 10 Nov 2006 06:03:18 -0500 Received: from ammma.net (net.ammma.mil [192.168.110.4]) by ammma.de (8.11.6/8.11.6/AMMMa AG) with ESMTP id kAAB2S822791 for ; Fri, 10 Nov 2006 12:02:28 +0100 Received: from neo.wg.de (jan.ammma.mil [192.168.110.11]) by ammma.net (8.12.11.20060308/8.12.10/AMMMa AG) with ESMTP id kAAB33C9023872 for ; Fri, 10 Nov 2006 12:03:12 +0100 Received: from localhost (localhost [127.0.0.1]) by neo.wg.de (Postfix) with ESMTP id 159B027DA0E for ; Fri, 10 Nov 2006 12:06:41 +0100 (CET) Received: from neo.wg.de ([127.0.0.1]) by localhost (neo.wg.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22126-09 for ; Fri, 10 Nov 2006 12:06:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by neo.wg.de (Postfix) with ESMTP id 7989E2A57C9 for ; Fri, 10 Nov 2006 12:06:36 +0100 (CET) Received: from 192.168.60.3 ([192.168.60.3]) by neo.wg.de (Horde MIME library) with HTTP; Fri, 10 Nov 2006 12:06:36 +0100 Message-ID: <20061110120636.yib40mome8c04g0o@neo.wg.de> X-Priority: 3 (Normal) Date: Fri, 10 Nov 2006 12:06:36 +0100 To: internals@lists.php.net References: <7c3b2950611091321y649266abs4f3a5bac7187e889@mail.gmail.com> In-Reply-To: <7c3b2950611091321y649266abs4f3a5bac7187e889@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) X-Virus-Scanned: amavisd-new at wg.de Subject: Re: [PHP-DEV] Feature request From: jan@horde.org (Jan Schneider) Zitat von Dmitry Shirokov : > Hey guys. > > What are you thinking about adding this feature: > > function foo() > { > return array(1,2,3,4,5,6); > } > > echo foo()[4]; // <---- it that > // or may be (foo())[4] ? > > > // instead of > $var = foo(); > echo $var[4]; > ?> Yes, please, that would be most important shorthand functionality after dereferencing. Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/