<!DOCTYPE html><html><head></head>
<body><?php
function eh($errno,$errmsg,$file,$line,$var){
echo "Error level $errno<br />";
echo "$errmsg<br />";
echo "$file<br />";
echo "Line $line<br />";
print_r($var);
}
function eh2(){
echo "Error";
}
set_error_handler('eh');
set_error_handler('eh2');
restore_error_handler();
echo $a;
?> </body></html>
<!DOCTYPE html><html><head></head>
<body><?php
function eh($errno,$errmsg,$file,$line,$var){
echo "Error level $errno<br />";
echo "$errmsg<br />";
echo "$file<br />";
echo "Line $line<br />";
print_r($var);
}
function eh2(){
echo "Error";
}
set_error_handler('eh');
set_error_handler('eh2');
restore_error_handler();
echo $a;
?> </body></html>
Error level 8
Undefined variable: a
E:\Program Files\xampp\htdocs\intro.php
Line 16
Array ( [_GET] => Array ( ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) )
Similarly,