PHP getName()函数讲解
PHP getName() 函数 实例 返回 XML 元素及其子元素的名称: <?php $xml=<<<XML <?xml version=1.0 standalone=yes?> Volvo BMW Saab XML; $sxe=new SimpleXMLElement($xml); echo $sxe->getName() . ; foreach ($sxe->children() as $child) { echo $child
下载地址
用户评论