ID:          50647
 Updated by:  [email protected]
 Reported By: robert_xp at gmx dot net
-Status:      Open
+Status:      Wont fix
 Bug Type:    Feature/Change Request
 PHP Version: 5.3.1
 New Comment:

This has already gone through the RFC process and been declined, per
http://wiki.php.net/rfc/shortsyntaxforarrays


Previous Comments:
------------------------------------------------------------------------

[2010-01-04 11:46:29] robert_xp at gmx dot net

Description:
------------
A nice improvement for PHP would be a short hand notation for arrays.
You can find more details here: http://www.xarg.org/2009/12/php-hacking/

Reproduce code:
---------------
//old:
$arr = array(1, 2, array(5 => "foo", 3.14159), 9);

//new:
$arr = [1, 2, [5 => "foo", 3.14159], 9];

Expected result:
----------------
In both cases the result of $arr should be the same.

Actual result:
--------------
Compile-error


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50647&edit=1

Reply via email to