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
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xml_get_error_code.rs).
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.