php8.5
Home/ Manual/ xmlwriter / xmlwriter/ XMLWriter::setIndentString

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

indentation

The indentation string.

Return Values

Success

Changelog

VersionDescription

Notes

Note

The indent is reset when an xmlwriter is opened.

See Also

  • XMLWriter::setIndent

Source: reference/xmlwriter/xmlwriter/setindentstring.xml · from the official PHP manual (php/doc-en)