PHP » GoLang |
login |
register |
about
|
GoLang error_reporting
request it (471)
GoLang replacement for PHP's error_reporting
[edit | history]
error_reporting(PHP 4, PHP 5, PHP 7) error_reporting — Sets 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
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|