PHP function error_get_last()

Availability in versions: PHP 5.2.0

Get the last occurred error

Parameters

The function has no input parameters.

Return values

array

an associative array describing the last error with keys "type", "message", "file" and "line". Returns &null; if there hasn't been an error yet.

Additional resources

Official documentation for error-get-last

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.