Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8913 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47174 invoked by uid 1010); 3 Apr 2004 17:08:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47097 invoked from network); 3 Apr 2004 17:08:56 -0000 Received: from unknown (HELO mail.zend.com) (62.219.226.19) by pb1.pair.com with SMTP; 3 Apr 2004 17:08:56 -0000 Received: (qmail 7992 invoked from network); 3 Apr 2004 17:08:55 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 3 Apr 2004 17:08:55 -0000 Message-ID: <5.1.0.14.2.20040403190735.02bfbc98@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 03 Apr 2004 19:08:53 +0200 To: Andrey Hristov ,internals@lists.php.net In-Reply-To: <406EED4C.5050000@hristov.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Deferencing index of an array returned from function call From: andi@zend.com (Andi Gutmans) References: <406EED4C.5050000@hristov.com> At 06:58 PM 4/3/2004 +0200, Andrey Hristov wrote: >Hi internals, >maybe I am late for this for PHP 5 but just want to ask for opinion about >dereferencing indexes of arrays returned by functions. In PHP 5 is >possible to dereference member variables of an objects like : >someFunc()->someMember; >but this : >$b = someFunction()['someIndex']; >is not possible This is a well known feature request but won't be supported in PHP 5.0. I can't tell you if it'll ever be supported. It requires some research and a lot of thought. Andi