Home > PHP > Function > XML Parser > xml_error_string()

xml_error_string()

xml_error_string - Get XML parser error string

Syntax

string xml_error_string (int $code)

Arguments

  • code - An error code from xml_get_error_code().

Description

Gets the XML parser error string associated with the given code.

Version

PHP 4, 5

Return value

Returns a string with a textual description of the error code, or FALSE if no description was found.