PHP libxml_get_errors() 函数
![PHP libxml 参考手册](http://static.json.cn/r/uploadfile/up/3e/a9/18/41e5761fb9ace3ecbd611c59b218a93e.jpg)
定义和用法
libxml_get_errors() 函数从 libxml 错误缓冲中获取错误。
该函数返回错误对象的一个数组,如果 libxml 错误缓冲中没有错误,则返回一个空数组。
语法
libxml_get_errors()
实例
<?php
libxml_get_errors()
?>
libxml_get_errors()
?>
![PHP libxml 参考手册](http://static.json.cn/r/uploadfile/up/3e/a9/18/41e5761fb9ace3ecbd611c59b218a93e.jpg)
PHP 教程
libxml_get_errors() 函数从 libxml 错误缓冲中获取错误。
该函数返回错误对象的一个数组,如果 libxml 错误缓冲中没有错误,则返回一个空数组。