Skip to content

Instantly share code, notes, and snippets.

@gom
Created November 29, 2011 18:21
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 gom/1405822 to your computer and use it in GitHub Desktop.
Save gom/1405822 to your computer and use it in GitHub Desktop.
var_dump(in_array(0, array(null))); // => true
var_dump(array_search(0, array(null))); // => 0
var_dump(array_key_exists(0, array(null => 1))); // => false
var_dump(0 == null); // => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment