t = $xml->site->part;
foreach ( $part as $content )
{
echo $content[''id''].”<br />”;
echo $content->title.”<br />”;
echo $content->title[''id''].”<br />”;
echo $content->describe.”<br />”;
}
?>
cy.php输出结果:
1
czbin xml版块
a
xml的相关文章
2
czbin php版块
php的相关文章
3
czbin ajax版块
c
ajax的相关文章
怎么样?的确很简单吧!