xml_error_string

(PHP 4, PHP 5, PHP 7)

xml_error_stringGet XML parser error string

Description

xml_error_string ( int $error_code ) : string|null

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

Parameters

error_code

An error code from xml_get_error_code().

Return Values

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

See Also

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.xml-error-string.php