PHP 8.5.0 Alpha 4 available for testing

Voting

: min(one, five)?
(Example: nine)

The Note You're Voting On

jakob dot voss at nichtich dot de
19 years ago
You can transform the result nodes into new DOMDocument objects this way:

<?php
$result
= $xpath->query($query);
$resultNode = $result->item(0);
$newDom = new DOMDocument;
$newDom->appendChild($newDom->importNode($resultNode,1));

print
"<pre>" . htmlspecialchars($newDom->saveXML()) . "</pre>";
?>

<< Back to user notes page

To Top