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_error_string() Function

PHP XML Function Manual

The xml_error_string() function is used to get the error string of the XML parser.

Syntax

string xml_error_string ( int $code ) )

Definition and Usage

It is used to get the error string of the XML parser

Return Value

 Returns the text description string corresponding to the error code parameter described by code, if there is no corresponding description, then returns FALSE.

Parameter

NumberParameters and Description
1

code

Error codes returned by xml_get_error_code().

PHP XML Function Manual