Home > Backend Development > PHP Tutorial > PHP Error Handling API method summary md

PHP Error Handling API method summary md

WBOY
Release: 2016-07-28 08:26:39
Original
1264 people have browsed it

Current number of APIs

12

Create (4)

<code>    trigger_error — 创建用户定义的错误消息,用于在用户指定的条件下触发一个错误消息。它与内建的错误处理器一同使用,也可以与由 <span>set</span>_error_handler() 函数创建的用户自定义函数使用
    user_error — trigger_error的别名

    <span>set</span>_error_handler —设置用户自定义的错误处理函数,替换内建的错误处理器
    <span>set</span>_exception_handler —设置用户自定义的异常处理函数,替换内建的异常处理器</code>
Copy after login

Get (2)

<code>    error_get_last —以数组的形式返回最后发生的错误
    debug_backtrace — 返回异常追溯数组(backtrace)</code>
Copy after login

Clean (1)

<code>    error_clear_last — 清除内存中最近的异常信息</code>
Copy after login

Restore (2)

<code>    restore_error_handler —之前的错误处理程序可能是在错误处理程序或用户自定义函数中构建的,恢复内建的错误处理程序
    restore_exception_handler —之前的异常处理程序可能是在异常处理程序或用户自定义函数中构建的,恢复内建的异常处理程序</code>
Copy after login

Output (2)

<code>    error_log — 向服务器错误记录、文件或远程目标发送一个错误
    debug_print_backtrace — 输出异常追溯数组(backtrace)</code>
Copy after login

Configure (1)

<code>    error_reporting — 设置 PHP 的报错级别并返回当前级别</code>
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced the PHP Error Handling API method summary md, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template