0
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의이 부분에서 ("33"코드 =은)
<yweather:forecast day="Thu" date="25 Sep 2014" low="43" high="57" text="Mostly Clear" code="33"/>
PHP에서 XML을 구문 분석하는 방법에 대한 질문은 무엇입니까? – kay
구문 분석하는 방법을 이해하지만이 부분에 문제가 있습니다. – blek