主页
PHP
PHP children() 函数
demo_func_simplexml_children
运行 ❯
×
更改方向
保存代码
更改主题
<?php $note=<<
Tove
Jani
Reminder
Do not forget me this weekend! XML; $xml=simplexml_load_string($note); foreach ($xml->children() as $child) { echo "Child node: " . $child . "
"; } ?>