|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-29 13:21 UTC] felipe@php.net
-Status: Open
+Status: Spam
[2011-11-29 13:21 UTC] felipe@php.net
[2011-11-29 13:22 UTC] felipe@php.net
-Summary: Array element access on instantiation
+Summary: Hidden because of SPAM
-Status: Spam
+Status: Open
[2011-11-29 13:22 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-11-29 13:22 UTC] felipe@php.net
[2011-11-29 13:23 UTC] felipe@php.net
-Summary: Hidden because of SPAM
+Summary: Array element access on instantiation
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 03:00:01 2025 UTC |
Description: ------------ Please add array element access on instantiation ...like JavaScript, C# and all languages excluding PHP 5.4RC Test script: --------------- <?php $i=0; print(array('pa','th')[$i++]); // pa print(['wa','ss'][$i++]); // ss ?> Expected result: ---------------- Parse error: syntax error, unexpected '[' in C:\htdocs\array.php on line 4 Actual result: -------------- pass