- 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() {
error_reporting(E_WARNING);
throw new Exception;
}
try {
@f();
} catch (Exception $e) {}
var_dump(error_reporting());