XMLWriter::setIndentString
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)
Set string used for indenting
Description
Oop
XMLWriter::setIndentString(string $indentation): bool
Procedural
xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool
Sets the string which will be used to indent each element/attribute of the resulting xml.
Parameters
indentationThe indentation string.
Return Values
Success
Changelog
| Version | Description |
|---|
Notes
Note
The indent is reset when an xmlwriter is opened.
See Also
XMLWriter::setIndent