在php学习中会遇到好多的错误处理方法,本文讲解其相关处理的方法。
Custom error: [$errno] $errstr
"; echo "Error on line $errline in $errfile
"; echo "Ending Script"; exit; } set_error_handler("customError"); $test=2; if ($test > 1) { trigger_error("A custom error has been triggered"); } ?>
本篇介绍了错误处理机制,更多相关内容请关注php中文网。
相关推荐:
立即学习“PHP免费学习笔记(深入)”;











