|
XMLWriter::setIndentxmlwriter_set_indentToggle indentation on/off DescriptionObject-oriented style
public bool XMLWriter::setIndent(bool
$enable )Procedural style bool xmlwriter_set_indent(XMLWriter
$writer , bool $enable )Toggles indentation on or off. Parameters
Return Values
Returns Changelog
ExamplesExample #1 XMLWriter::setIndent and mixed Content Enabling indentation is not suitable for mixed content, because the indent string is also inserted before inline elements.
The above example will output: <?xml version="1.0"?> <p>before <a>element</a> after</p> Notes
See Also
|