解决PHP显示Warning和Notice等问题 Posted on 17 12 月, 2019 Updated on 17 12 月, 2019 如何屏蔽这个错误呢,方法是添加如下代码: ini_set(“display_errors”, 0); error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL ^ E_WARNING); Post Views: 71