XMLWRITER_SET_INDENT(3) 1 XMLWRITER_SET_INDENT(3)
XMLWriter::setIndent - Toggle indentation on/off
Object oriented style
SYNOPSIS
bool XMLWriter::setIndent (bool $indent)
DESCRIPTION
Procedural style
bool xmlwriter_set_indent (resource $xmlwriter, bool $indent)
Toggles indentation on or off.
PARAMETERS
o $
xmlwriter -Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xml-
writer_open_uri(3) or xmlwriter_open_memory(3).
o $indent
- Whether indentation is enabled.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
XMLWriter::setIndentString.
PHP Documentation Group XMLWRITER_SET_INDENT(3)