Edit report at https://bugs.php.net/bug.php?id=60409&edit=1
ID: 60409 Updated by: fel...@php.net Reported by: bugzilla33 at gmail dot com Summary: Array element access on instantiation -Status: Open +Status: Spam Type: Bug Package: Arrays related Operating System: All PHP Version: 5.4.0RC2 Block user comment: N Private report: N New Comment: Please, stop posting same thing everytime. We already have your feature request at #60408. Thanks. Previous Comments: ------------------------------------------------------------------------ [2011-11-29 13:13:36] bugzilla33 at gmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60409&edit=1