Created
September 2, 2012 15:53
-
-
Save JeroenDeDauw/3600814 to your computer and use it in GitHub Desktop.
Evil PHP changing string to int
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 > $a = array(); | |
php > $a['42'] = true; | |
php > var_dump($a); | |
array(1) { | |
[42]=> | |
bool(true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment