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.
Specify different error level reporting:
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 |