- var_dump: documentation ( source)
- error_reporting: documentation ( source)
<?php
@error_reporting(E_WARNING);
var_dump(error_reporting());
error_reporting(E_ALL);
var_dump(error_reporting());
function f() {
try {
error_reporting(1);
error_reporting(0);
throw new Exception;
} catch (Exception $e) {}
}
@f();
var_dump(error_reporting());