PHP中的restore_error_handler()函数
restore_error_handling()函数可还原以前的错误处理程序。在使用set_error_handler()更改错误处理程序函数之后,将其用于恢复到先前的错误处理程序(可以是内置的或用户定义的函数)
语法
restore_error_handler()
参数
不适用
返回
restore_error_handler()函数返回TRUE。
示例
以下是一个例子-
<?php
function unserialize_handler($errno, $errstr) {
echo "Custom error: Invalid hello value.\n";
}
$hello = 'pqrs'; set_error_handler('unserialize_handler');
$original = unserialize($hello);
restore_error_handler();
?>输出结果
Custom error: Invalid hello value.
热门推荐
10 幼师辞职道别祝福语简短
11 订婚红包吉利祝福语简短
12 部队牛年祝福语简短的
13 男生打球祝福语简短独特
14 简短朴实的生日祝福语
15 蛋糕开学祝福语 简短独特
16 新婚男士祝福语大全简短
17 称赞老师的祝福语简短
18 订婚花束祝福语妈妈简短