PHP libxml_get_errors() Function

Definition and Usage

The libxml_get_errors() function retrieves errors from the libxml error buffer.

This function returns an array of error objects, if there are no errors in the libxml error buffer, it returns an empty array.

Syntax

libxml_get_errors()

Example

<?php
libxml_get_errors()
?>