我有这段代码
require('magpierss/rss_fetch.inc');
$url = 'http://weather.yahooapis.com/forecastrss?p=AUXX0013'
$rss = fetch_rss($url);
$title = $rss->items[0]['title'];
$description = $rss->items[0]['description'];
如何从xml
的这一部分获取数据,例如(code =“33”)<yweather:forecast day="Thu" date="25 Sep 2014" low="43" high="57" text="Mostly Clear" code="33"/>