« XML パーサー 関数
xml_get_current_byte_index »

xml_error_string

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

xml_error_string — XML パーサーのエラー文字列を得る

説明

function xml_error_string(int $error_code): ?string

エラーコード error_code の説明を有する文字列を 返します。

パラメータ

error_code

xml_get_error_code() からのエラーコード。

戻り値

エラーコード error_code の説明を有する文字列を 返します。説明がない場合には null または "Unknown" を返します。

参考

関連キーワード:
パーサー   code   エラーコード   current   byte   index   Unknown   参考
関連する関数・ページ:
function.xml-get-error-code   xml.setup   xml.error-codes   function.xml-get-current-line-number   function.xml-get-current-byte-index   function.xml-get-current-column-number