September 2001
Intermediate to advanced
768 pages
32h 45m
English
int error_reporting([int reporting_level) Sets the level of error reporting for the current script.
Returns:
Integer (bitmask) containing the previous level of error reporting; FALSE on error
Description:
error_reporting() specifies which level(s) of PHP errors are reported within the current document and returns the previous level of error reporting. The new settings take effect immediately after the function call is made.
If error_reporting() is called without any arguments, the current level of error reporting is returned.
The error reporting level can be set with either an integer or a named constant. Multiple integers or constants can be combined with bitwise operators.Any PHP bitwise operator can be used (&, |, ∼ ,
Read now
Unlock full access