<?php $string = <<<XML <a> <foo name="one" game="lonely">1</foo> </a> XML; $xml = simplexml_load_string($string); echo $xml->foo->attributes()->name;
You have javascript disabled. You will not be able to edit any code.