xmlwriter_set_indent()
function xmlwriter_set_indent(mixed $writer, bool $enable): bool
Toggles indentation of the output.
Parameters:
$writer(mixed)$enable(bool)
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_set_indent.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_set_indent is implemented in the compiler, see the internals page.