PHP error_get_last() Function

The error_get_last() is an inbuilt function of PHP and is used to return the last error that occurred in your program. Returns an associative array describing the last error with keys: type, message, file, and line. Returns NULL if no error has occurred yet.

PHP error_get_last() Function with example

Example #1

Example #2

Example #3

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts: