xml_get_error_code

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get XML parser error code
xml_get_error_code(XMLParser $parser): int
        $a['current_byte_index'] = xml_get_current_byte_index($h);

        
$a['current_column_number'] = xml_get_current_column_number($h);

        
$a['current_line_number'] = xml_get_current_line_number($h);

        
$a['error_code'] = xml_get_error_code($h);



        if (isset(
self::XML_ERRORS[$a['error_code']])) {

            
$a['error_code'] = new ConstStub(self::XML_ERRORS[$a['error_code']], $a['error_code']);