//error handler function
function customError($errno, $errstr){
echo "<b>Error:</b> [$errno] $errstr";
}
//set error handler
set_error_handler("customError");
//代码====
//error handler function
function customError($errno, $errstr){
echo "<b>Error:</b> [$errno] $errstr";
}
//set error handler
set_error_handler("customError");
//代码====
转载于:https://www.cnblogs.com/init-007/p/9953490.html