亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

PHP children() 函數(shù)

定義和用法

children() 函數(shù)獲取指定節(jié)點(diǎn)的子節(jié)點(diǎn)。

語(yǔ)法

class SimpleXMLElement
{
string children(ns,is_prefix)
}
參數(shù) 描述
ns 可選。
is_prefix 可選。默認(rèn)是 false。

例子

XML 文件:

<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>Don't forget the meeting!</body>
</note>

PHP 代碼:

<?php
$xml = simplexml_load_file("test.xml");

foreach ($xml->children() as $child)
  {
  echo "Child node: " . $child;
  }
?>

輸出類(lèi)似:

Child node: George
Child node: John
Child node: Reminder
Child node: Don't forget the meeting!