主页
PHP
PHP simplexml_load_file() 函数
demo_func_simplexml_load_file3
运行 ❯
×
更改方向
保存代码
更改主题
<?php $xml=simplexml_load_file("/demo/note.xml"); echo $xml->getName() . "
"; foreach($xml->children() as $child) { echo $child->getName() . ": " . $child . "
"; } ?>