Specify different error level reporting:
The error_reporting() function specifies which errors are reported.
PHP has many levels of errors, and using this function sets that level for the current script.
Parameter | Description |
---|---|
level | Optional. Specifies the error-report level for the current script. Error numbers and named constants are accepted. Note: Named constants are recommended to ensure compatibility for future PHP versions |
Return Value: | Returns the old error reporting level or the current error reporting level if no level parameter is given |
---|---|
PHP Version: | 4.0+ |