PHP libxml_get_last_error() Function

The libxml_get_last_error() function gets the last error from the libxml error buffer.This function returns an error object on success, and FALSE on failure or if there are no errors in the libxml error buffer.

LibXMLError libxml_get_last_error ( void )

Retrieve last error from libxml.

Example -

Returns a LibXMLError object if there is any error in the buffer, FALSE otherwise.