- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected ''"><h1>Überschrift1</h1><h2>�' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in /in/qug4f on line 7
Process exited with code 255.
<?php
$root = new DOMDocument();
$root->loadXML('<article id=""></article>');
for($i=0;$i<=3;$i++){
$node = new DOMDocument();
$node->loadXML('<section id="'.$i'"><h1>Überschrift1</h1><h2>Überschrift2</h2><p>Content</p></section>');
$node = $root->importNode($node->documentElement, true);
$root->documentElement->appendChild($node);
}
print $root->saveXML();