← All docs
xmlwriter_end_element()
Ends the current element, using the short form when it has no content.
xmlwriter_end_element()
function xmlwriter_end_element(mixed $writer): bool
Ends the current element, using the short form when it has no content.
Parameters:
$writer(mixed)
Returns: bool
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xmlwriter_end_element.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_end_element is implemented in the compiler, see the internals page.