|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-20 10:48 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 12:00:01 2025 UTC |
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'];