← All docs

xml_get_error_code()

Returns the parser's last error code.

xml_get_error_code()

function xml_get_error_code(mixed $parser): int

Returns the parser’s last error code.

Parameters:

  • $parser (mixed)

Returns: int

Availability

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

Internals

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