error_get_last
(PHP 5 >= 5.2.0)
error_get_last — Get the last occurred error
说明
array error_get_last ( void )
Gets information about the last error that occured.
返回值
Returns an associative array describing the last error with keys "type", "message", "file" and "line". Returns NULL if there hasn't been an error yet.
范例
Example#1 An error_get_last() example
上例的输出类似于:
Array
(
[type] => 8
[message] => Undefined variable: a
[file] => C:\WWW\index.php
[line] => 2
)
(PHP 5 >= 5.2.0)
error_get_last — Get the last occurred error
说明
array error_get_last ( void )
Gets information about the last error that occured.
返回值
Returns an associative array describing the last error with keys "type", "message", "file" and "line". Returns NULL if there hasn't been an error yet.
范例
Example#1 An error_get_last() example
上例的输出类似于:
Array
(
[type] => 8
[message] => Undefined variable: a
[file] => C:\WWW\index.php
[line] => 2
)
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/3069/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2013-4-16 17:07
评论列表