Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Error Handling and Logging Functions : error_get_last

error_get_last

Get the last occurred error (PHP 5 >= 5.2.0)
array error_get_last ( )

Example 592. An error_get_last() example

<?php
echo $a;
print_r(error_get_last());
?>

The above example will output something similar to:

Array
(
   [type] => 8
   [message] => Undefined variable: a
   [file] => C:\WWW\index.php
   [line] => 2
)

Change Language


Follow Navioo On Twitter
debug_backtrace
debug_print_backtrace
error_get_last
error_log
error_reporting
restore_error_handler
restore_exception_handler
set_error_handler
set_exception_handler
trigger_error
user_error
eXTReMe Tracker