PHP libxml_get_last_error() Function

Definition and Usage

The libxml_get_last_error() function retrieves the last error from the libxml error buffer.

If successful, an error object is returned. If failed, or no error is in the libxml error buffer, false is returned.

Syntax

libxml_get_last_error()

Example

<?php
libxml_get_last_error()
?>