xml_get_error_code
PHP Manual
PHP Manual»XML Parser Функції»xml_get_error_code

xml_get_error_code

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

xml_get_error_codeGet XML parser error code

Опис

function xml_get_error_code(XMLParser $parser): int

Gets the XML parser error code.

Параметри

parser

A reference to the XML parser to get error code from.

Значення, що повертаються

Returns one of the error codes listed in the error codes section.

Журнал змін

Версія Опис
8.0.0 Тепер параметр parser має бути примірником XMLParser. Раніше очікувався xml-resource.

Прогляньте також

To Top