xml_error_string()函數(shù)用于獲取 XML 解析器的錯(cuò)誤字符串。
string xml_error_string ( int $code ) )
它用來獲取XML解析器錯(cuò)誤字符串
返回與 code 描述的錯(cuò)誤代碼參數(shù)對(duì)應(yīng)的文本描述字符串,若沒有與之對(duì)應(yīng)的描述,則返回 FALSE。
序號(hào) | 參數(shù)和說明 |
---|---|
1 | code 由 xml_get_error_code() 返回的錯(cuò)誤代碼。 |