libxml_get_last_error()
libxml_get_last_error() — Retrieve last error from libxml.
Built-in function of PHP 8.5. The manual lists it as available in PHP 5 >= 5.1.0, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.
Signature
libxml_get_last_error(): LibXMLError|false
Parameters
This function takes no parameters.
Return value
Returns a LibXMLError object if there is any error in the buffer, false otherwise.
Example
The PHP manual ships no example for libxml_get_last_error(); the signature and the parameter table above are the contract.
See also
libxml_get_errors(), libxml_clear_errors()
All PHP 8.5 built-in functions
Reference card built from the PHP manual page libxml_get_last_error() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.