<?php $doc = new DOMDocument(); $doc->loadXML('<example a="b">Test</example>'); $el = $doc->documentElement; $at = $el->getAttributeNode('a'); $tx = $el->firstChild; var_dump($doc); var_dump($el); var_dump($at); var_dump($tx);
You have javascript disabled. You will not be able to edit any code.
This script was stopped while abusing our resources