Created
December 14, 2015 05:34
-
-
Save kuzuha/589d09893bff444721fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r '$a=[]; $a[]=2; $a[-1]=1; var_dump($a); array_shift($a); var_dump($a);' | |
array(2) { | |
[0]=> | |
int(2) | |
[-1]=> | |
int(1) | |
} | |
array(1) { | |
[0]=> | |
int(1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment