php 自定义错误error_function 的建立






所有代码演示如下:

<?php

	function errorWarning($errev, $errorms){
		echo "<b>$errev:</b> $errorms";
	}

	set_error_handler("errorWarning"); //加载到默认系统错误处理程序

	echo $ss; 
?>

猜你喜欢

转载自blog.csdn.net/bianjiyuyan/article/details/15499275