PHP中的error_reporting()函数如何实现详尽的错误报告控制?
- 内容介绍
- 文章标签
- 相关推荐
本文共计67个文字,预计阅读时间需要1分钟。
php
// 报告运行时错误error_reporting(E_ERROR | E_WARNING | E_PARSE);
// 报告所有错误error_reporting(E_ALL);?>
<?php //禁用错误报告 error_reporting(0); //报告运行时错误 error_reporting(E_ERROR | E_WARNING | E_PARSE); //报告所有错误 error_reporting(E_ALL); ?>
本文共计67个文字,预计阅读时间需要1分钟。
php
// 报告运行时错误error_reporting(E_ERROR | E_WARNING | E_PARSE);
// 报告所有错误error_reporting(E_ALL);?>
<?php //禁用错误报告 error_reporting(0); //报告运行时错误 error_reporting(E_ERROR | E_WARNING | E_PARSE); //报告所有错误 error_reporting(E_ALL); ?>

