2013-03-15 37 views
1

我正在使用CodeIgniter和RSS解析器庫。我對這段代碼很滿意。想在RSS中添加內容編碼解析器庫代碼

功能get_ars(){ //加載RSS分析器 $這 - >負載>庫( 'rssparser');

// Get 6 items from arstechnica 
$rss = $this->rssparser->set_feed_url('http://feeds.arstechnica.com/arstechnica/index/')->set_cache_life(30)->getFeed(6); 

foreach ($rss as $item) 
{ 
    echo $item['title']; 
    echo $item['description']; 
} } 

,但我想添加更多的內容編碼。但我不知道該怎麼做。

回答