Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$hoge = array(1, 2, 3);
var_dump(array_key_exists(array(), $hoge)); // PHP Warning: array_key_exists(): The first argument should be either a string or an integer bool(false)
var_dump(isset($hoge[array()])); // PHP Warning: Illegal offset type in isset or empty bool(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment