The error_reporting PHP function.
PHP has multiple levels of errors, using error_reporting function level for the application execution. It returns the old error reporting level or the current error reporting level if no level parameter is given.
For more detailed information kindly visit the PHP official page.