[PHP-DEV] Deferencing index of an array returned from

6 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Andi Gutmans

03.04.2004, 12:06:4703.04.04
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 :
>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.


PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Allen antworten
Dem Autor antworten
0 neue Nachrichten