Created
May 17, 2017 08:02
-
-
Save SniperSister/c858fdb350cd17793db1a0e43ed49122 to your computer and use it in GitHub Desktop.
DOMDocument Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dom = new DOMDocument(); | |
$dom->loadHTML("<legend>Optional</legend>", LIBXML_HTML_NOIMPLIED + LIBXML_HTML_NODEFDTD); | |
$dom2 = new DOMDocument(); | |
$dom2->loadXML("<div></div>"); | |
$result = $dom2->importNode($dom->firstChild, true); | |
var_dump($result); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment