PHP: Hypertext Preprocessor (original) (raw)
Change language:
xml_error_string
(PHP 4, PHP 5, PHP 7, PHP 8)
xml_error_string — Get XML parser error string
Description
xml_error_string(int $error_code
): ?string
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 errorerror_code
, or [null](reserved.constants.php#constant.null)
or "Unknown"
if no description was found.
See Also
- xml_get_error_code() - Get XML parser error code
Found A Problem?
Learn How To Improve This Page •Submit a Pull Request •Report a Bug
User Contributed Notes
There are no user contributed notes for this page.