#32153 [Opn->Bgs]: New way of accessing array values

From: Date: Mon, 20 Aug 2007 10:48:15 +0000
Subject: #32153 [Opn->Bgs]: New way of accessing array values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116352@lists.php.net to get a copy of this message
ID: 32153 Updated by: scottmac@php.net Reported By: switch at andrewwade dot co dot uk -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Any -PHP Version: Irrelevant +PHP Version: 5.x New Comment: Duplicate of bug #23022 Previous Comments: ------------------------------------------------------------------------ [2005-03-01 18:29:03] switch at andrewwade dot co dot uk Description: ------------ It would be good if we could access array data in the example shown below. function myFunction() { return array('foo' => 'bar'); } $value = myFunction()['foo']; Instead of: function myFunction() { return array('foo' => 'bar'); } $return = myFunction(); $value = $return['foo']; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32153&edit=1

« previous php.bugs (#116352) next »