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 level is not set, error_reporting() will just return the current error reporting level.
Returns the old error_reporting level or the current level if no level parameter is given.