|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-04 06:35 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 14:00:01 2025 UTC |
Description: ------------ I've tried to get an element of array, returned by function getArray() (user-defined). Reproduce code: --------------- <?php function getArray() { return array('Useful data', 'Some useless data'); } $data=getArray()[0]; ?> Expected result: ---------------- $data='Useful data' Actual result: -------------- Parse error: syntax error, unexpected '[' in Z:\home\test\www\bad1.php5 on line 7