Created
October 28, 2014 05:30
-
-
Save kuzuha/989fa0f7732d2a78ff00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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["1.1"]=1; $a[1.1]=2; var_dump($a);' | |
array(2) { | |
'1.1' => | |
int(1) | |
[1] => | |
int(2) | |
} | |
php -r '$a="0x12"; $a++; var_dump($a);' | |
int(19) | |
php -r '$a="012"; $a++; var_dump($a);' | |
int(13) | |
php -r '$a="0b11"; $a++; var_dump($a);' | |
string(4) "0b12" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment