error_reporting

 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.