|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-21 21:43 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
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...