codecamp

PHP libxml_get_errors() 函数

PHP libxml_get_errors() 函数


PHP libxml 参考手册 完整的 PHP libxml 参考手册

定义和用法

libxml_get_errors() 函数从 libxml 错误缓冲中获取错误。

该函数返回错误对象的一个数组,如果 libxml 错误缓冲中没有错误,则返回一个空数组。

语法

libxml_get_errors()


实例

<?php
libxml_get_errors()
?>


PHP libxml 参考手册 完整的 PHP libxml 参考手册
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

PHP 相关教程

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }