- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
$not_array = false;
// Case #1, incorrect: only 'PHP Warning: Undefined array key "nonexistant"' is logged
echo (array_key_exists($_REQUEST['nonexistant'], $not_array) ? "yes" : "no");