note 105107 deleted from function.xmlwriter-set-indent by cmb

From: Date: Sun, 20 Sep 2020 13:36:41 +0000
Subject: note 105107 deleted from function.xmlwriter-set-indent by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215151@lists.php.net to get a copy of this message
Note Submitter: nemiga at gmail dot com ---- This param should be used only after openMemory() call: <?php $version = '1.0'; $encoding = 'UTF-8'; $rootName = 'root'; $xml = new XMLWriter(); $xml->openMemory(); $xml->setIndent(true); $xml->startDocument($version, $encoding); $xml->startElement($this->rootName); // .. add more elements here $xml->endElement(); echo $xml->outputMemory(); ?>

« previous php.notes (#215151) next »