简单教程
提交运行
代码编辑器:
<?php $xml = simplexml_load_file("php_xml_note.xml"); echo $xml->getName() , "<br>"; foreach($xml->children() as $child) { echo $child->getName() . ": " . $child . "<br>"; }
运行结果: