Skip to content

Instantly share code, notes, and snippets.

@pierrejoye
Created July 23, 2011 20:07
Show Gist options
  • Select an option

  • Save pierrejoye/1101827 to your computer and use it in GitHub Desktop.

Select an option

Save pierrejoye/1101827 to your computer and use it in GitHub Desktop.
Short array syntax, small beautiful thing :)
c:\php-sdk\php54\vc10\x86\php54>Release_TS\php -n -r "$a = [1,2,3,4,5]; print_r($a);"
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment