Re: Deferencing index of an array returned from function call
| From: | Andi Gutmans | Date: | Sat, 03 Apr 2004 17:08:53 +0000 |
| Subject: | Re: Deferencing index of an array returned from function call | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8913@lists.php.net to get a copy of this message | ||
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 possibleThis 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