Skip to content

Instantly share code, notes, and snippets.

@kuzuha
Created October 28, 2014 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuzuha/989fa0f7732d2a78ff00 to your computer and use it in GitHub Desktop.
Save kuzuha/989fa0f7732d2a78ff00 to your computer and use it in GitHub Desktop.
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