xml_error_string

(PHP 4, PHP 5, PHP 7, PHP 8)

xml_error_string获取 XML 解析器的错误字符串

说明

xml_error_string(int $error_code): ?string

获取与指定 error_code 关联的 XML 解析器错误字符串。

参数

error_code

xml_get_error_code() 返回的错误代码。

返回值

返回带有错误 error_code 文本描述的字符串,若没有与之对应的描述,则返回 null

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top