error_reportingSets which PHP errors are reported Description
int error_reporting
([ int
$level
] )
The error_reporting function sets the
error_reporting
directive at runtime. PHP has many levels of errors, using
this function sets that level for the duration (runtime) of
your script. If the optional Parameters
Return Values
Returns the old error_reporting
level or the current level if no Changelog
Examples
Example #1 error_reporting examples
<?php NotesWarning
Most of Tip
Passing in the value -1 will show every possible error,
even when new levels and constants are added in future PHP versions. The
|