ID: 41759
Updated by: [EMAIL PROTECTED]
Reported By: rudi at mageuk dot com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 5.2.3
New Comment:
This has been discussed multiple times and currently nobody is able to
provide a acceptable patch. Please see internals mailing list archives
for more information on this.
Previous Comments:
------------------------------------------------------------------------
[2007-06-21 11:50:27] rudi at mageuk dot com
Description:
------------
I don't know the exact name for this. But being able to reference an
index from a function that returns an array would be very usefull.
Reproduce code:
---------------
function returnarray() {
return array('abc' => 'blah blah', '123' => 'blee blee');
}
echo returnarray()['abc'];
echo returnarray()['123'];
Expected result:
----------------
blah blah
blee blee
Actual result:
--------------
Parse Error as it's obviously not implemented...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41759&edit=1