Current Location: Home> Function Categories> error_get_last

error_get_last

Get the last error
Name:error_get_last
Category:Error handling
Programming Language:php
One-line Description:Returns the last error that occurred.

Definition and usage

error_get_last() function returns the last error (in the form of an associative array).

The associative array contains four keys:

  • [type] - describe the error type
  • [message] - Description error message
  • [file] - File describing the error occurred
  • [line] - describe the line number where the error occurred

grammar

 error_get_last ( ) ;
Similar Functions
Popular Articles