ini_set("display_errors", "On");//打开错误提示
// ini_set("error_reporting",E_ALL);//显示所有错误
error_reporting(E_ALL);//显示所有错误### 两种写法作用是一样的看个人喜好我一般用下面这种
02-21
661
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
ini_set("display_errors", "On");//打开错误提示
// ini_set("error_reporting",E_ALL);//显示所有错误
error_reporting(E_ALL);//显示所有错误### 两种写法作用是一样的看个人喜好我一般用下面这种