xml_error_string
string xml_error_string(int errorcode)
Gets a text description of the error code.
Returns:
Error-code description on success; NULL on error
Description:
For a list of the error codes, see the xmlparse.h source file for this extension.
Version:
PHP 3 >= 3.0.6, PHP 4 >= 4.0b1
Example:
Print an XML error
print "The description for error code XML_ERROR_INVALID_TOKEN is " . xml_error_string(XML_ERROR_INVALID_TOKEN); |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.