XMLWriter::writeAttribute

PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0
XMLWriter::writeAttribute - Write full attribute
Manual
Code Examples

Example #1 Intermixing Sub-elements and Attributes

Result: bool(false) <element attr1="0"><subelem>0</subelem></element>
PHP Version: