The libxml_get_last_error() function gets the last error from the libxml error buffer.
Syntax
libxml_get_last_error()
Parameters
NA
Return
The libxml_get_last_error() function returns an error object on success, and FALSE on failure or if there are no errors in the libxml error buffer.
Example
The following is an example −
<?php libxml_get_last_error() ?>