As of PHP 5.4 you can also use short array syntax, which replaces
[ ] square brackets.
The 1st example codes the array for 2 custom post types named listing and portfolio using
array( 'listing','portfolio' );
You can now code the array using square brackets like this:
If you’re learning PHP, at some stage you’ll come across PHP code which codes arrays using square brackets.Subscribe for Genesis Tutorials - Double Opt In Confirmation Required