Source Code:
(back to article)
<?php $xml = new SimpleXMLElement('<book><title>PHP Basics</title></book>'); $name = $xml->title->getName(); echo $name;
Result:
Report an issue