array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.xml-error-string.php', 1 => 'xml_error_string', ), 'up' => array ( 0 => 'ref.xml.php', 1 => 'XML 解析器函数', ), 'prev' => array ( 0 => 'ref.xml.php', 1 => 'XML 解析器函数', ), 'next' => array ( 0 => 'function.xml-get-current-byte-index.php', 1 => 'xml_get_current_byte_index', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/xml/functions/xml-error-string.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
xml_error_string — 获取 XML 解析器的错误字符串
返回带有错误 error_code
文本描述的字符串,若没有与之对应的描述,则返回 null
。