PHP 5.4 Support: Short Array Syntax
By Ondrej Brejla on Feb 13, 2012
Hi all! Today is the introduction day of our next PHP 5.4 Feature support. It's called Short Array Syntax and will be available in NetBeans 7.2.
Note: All PHP 5.4 features are available in your projects after setting Project Properties -> Sources -> PHP Version to PHP 5.4 value, or after choosing the same value during a PHP Project creation (in New Project Wizard).
Common PHP array declaration syntax is quite long, so developers of PHP decided to support some kind of a shorter syntax. You can use just [ instead of an old long array( prefix and ] instead of a closing bracket ).
Following image shows you how it looks like in NetBeans 7.2.