From: zyss at mail dot zp dot ua Operating system: Irrelevant PHP version: 5.2.9 PHP Bug Type: Feature/Change Request Bug description: shorthand for array keryword
Description: ------------ One of the most frequently used keywords in PHP is "array". It would be great to adopt just another construct from C/C++, namely array constructor using curly brackets { }. These are cases when PHP code is oversaturated with "array" word. In this way it would be much easier to write and read PHP code. I am aware of case #3928 and http://wiki.php.net/rfc/shortsyntaxforarrays, but I think that curly brackets would be more suitable than square brackets. Noone seems to complain of how C/C++ arrays are constructed. -- Edit bug report at http://bugs.php.net/?id=48266&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48266&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48266&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48266&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48266&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48266&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48266&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48266&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48266&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48266&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48266&r=support Expected behavior: http://bugs.php.net/fix.php?id=48266&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48266&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48266&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48266&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48266&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48266&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48266&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48266&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48266&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48266&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48266&r=mysqlcfg