Return the last error that occurred:
<?php
echo $test;
print_r(error_get_last());
?>
Try it Yourself »
The error_get_last() function returns the last error that occurred (as an associative array).
The associative array contains four keys:
error_get_last();
Return Value: | Returns an associative array describing the last error with keys: type, message, file, and line. Returns NULL if no error has occurred yet |
---|---|
PHP Version: | 5.2+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!