XMLWriter::setIndent

PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0
XMLWriter::setIndent - Toggle indentation on/off
Manual
Code Examples

Example #1 XMLWriter::setIndent and mixed Content

Result: <?xml version="1.0"?> <p>before <a>element</a> after</p>
PHP Version: