Easy Tutorial
❮ Func Array Shift Func String Str Ireplace ❯

PHP error_get_last() Function



Definition and Usage

The error_get_last() function retrieves the last occurred error.

This function returns the last occurred error as an array. If no error has occurred, it returns NULL.

The returned error array contains 4 keys and values:

Syntax


Example

The output of the above code is as follows:


❮ Func Array Shift Func String Str Ireplace ❯