PHP libxml_get_last_error() 函数

定义和用法
libxml_get_last_error() 函数从 libxml 错误缓冲中获取最后一个错误。
若成功,则返回一个错误对象。若失败,或 libxml 错误缓冲中没有错误,则返回 false。
语法
libxml_get_last_error()
例子
<?php
libxml_get_last_error()
?>
libxml_get_last_error()
?>

libxml_get_last_error() 函数从 libxml 错误缓冲中获取最后一个错误。
若成功,则返回一个错误对象。若失败,或 libxml 错误缓冲中没有错误,则返回 false。