error_reporting(0);//关闭错误
error_reporting(E_ERROR,E_WARNING,E_PARSE);//报告Runtion错误
error_reporting(E_ALL);//报告所有错误
init_set('error_reporting',E_ALL);//等同于error_reporting(E_ALL);
error_reporting(E_ALL & ~E_NOTICE);//报告除了E_NOTICE之外的所有错误
error_reporting(0);//关闭错误
error_reporting(E_ERROR,E_WARNING,E_PARSE);//报告Runtion错误
error_reporting(E_ALL);//报告所有错误
init_set('error_reporting',E_ALL);//等同于error_reporting(E_ALL);
error_reporting(E_ALL & ~E_NOTICE);//报告除了E_NOTICE之外的所有错误
转载于:https://www.cnblogs.com/shangfz/p/11238069.html