← All docs

xml_error_string()

Returns the message for an XML parser error code.

xml_error_string()

function xml_error_string(int $error_code): ?string

Returns the message for an XML parser error code.

Parameters:

  • $error_code (int)

Returns: ?string

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xml_error_string is implemented in the compiler, see the internals page.