Skip to content

Instantly share code, notes, and snippets.

@JeroenDeDauw
Created September 2, 2012 15:53
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 JeroenDeDauw/3600814 to your computer and use it in GitHub Desktop.
Save JeroenDeDauw/3600814 to your computer and use it in GitHub Desktop.
Evil PHP changing string to int
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