error_get_last

PHP 5 >= 5.2.0, PHP 7, PHP 8
error_get_last - Get the last occurred error
Manual
Code Examples

Example #1 An error_get_last example

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


Function error_get_last:

Error Handling and Logging Functions

Most used PHP functions