xml_error_string

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

xml_error_string獲取 XML 解析器的錯(cuò)誤字符串

說明

xml_error_string(int $code): string

根據(jù)給定的 code 獲得 XML 解析器錯(cuò)誤字符串。

參數(shù)

code

xml_get_error_code() 返回的錯(cuò)誤代碼。

返回值

返回與 code 描述的錯(cuò)誤代碼參數(shù)對(duì)應(yīng)的文本描述字符串,若沒有與之對(duì)應(yīng)的描述,則返回 false。

參見