|
PHP5中文手册
error_reporting(PHP 4, PHP 5) error_reporting — Sets which PHP errors are reported 说明
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. 参数
返回值Returns the old error_reporting level. 更新日志
范例
Example#1 error_reporting() examples
<?php 注释Warning
Most of E_STRICT errors are evaluated at the compile time thus such errors are not reported in the file where error_reporting is enhanced to include E_STRICT errors (and vice versa). |