English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Examples of PHP xml_get_error_code() Function

PHP XML Function Manual

The xml_get_error_code() function is used to get the XML parser error code.

Syntax

int xml_get_error_code ( resource $parser )

Definition and Usage

It is used to get the XML parser error code

Return Value

 If the parser parameter does not point to a valid parser, the function will return FALSE, otherwise it will return an error code from the list of error codes.

Parameter

Serial NumberParameters and Descriptions
1

parser

It is used to specify the XML parser to be used.

PHP XML Function Manual