libxml_get_errors
PHP 5 >= 5.1.0, PHP 7, PHP 8
libxml_get_errors - Retrieve array of errors
Manual
libxml_get_errors(
): array
Retrieve array of errors.
Parameters
This function has no parameters.
Return Values
Returns an array with LibXMLError objects if there are any errors in the buffer, or an empty array otherwise.