PHP Conference Japan 2024

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"Unknown"

參見

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top