<?php
$url="http://api.douban.com/movie/subject/10574622/reviews?start-index=1&max-results=10";
$xml=simplexml_load_file($url);
foreach($xml->entry->summary as $tmp)
echo "<br />" . $tmp ;
?>
以上代码是可以正常解析的,但是只能解析出第一个结果
怎么写能让它解析出全部的10个结果??
$url="http://api.douban.com/movie/subject/10574622/reviews?start-index=1&max-results=10";
$xml=simplexml_load_file($url);
foreach($xml->entry->summary as $tmp)
echo "<br />" . $tmp ;
?>
以上代码是可以正常解析的,但是只能解析出第一个结果
怎么写能让它解析出全部的10个结果??