← 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

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.