error_reporting我想知道他的作用。

解决方案 »

  1.   

    1 E_ERROR  
    2 E_WARNING  
    4 E_PARSE  只显示上面这几种错误
    E_ERROR
    Errors are also printed by default, and execution of the script is halted after the function returns. These indicate errors that can not be recovered from, such as a memory allocation problem. E_WARNING
    Warnings are printed by default, but do not interrupt script execution. These indicate a problem that should have been trapped by the script before the call was made. For example, calling ereg() with an invalid regular expression. E_PARSE
    Parse errors should only be generated by the parser. The code is listed here only for the sake of completeness. 
      

  2.   

    error_reporting 用于设置php的侦听错误的级别
      

  3.   

    xuzuning(唠叨) ,他是具体作用呢,不同的参数有什么不同,你能给我相关的参考吗?