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']; } }
,但我想添加更多的内容编码。但我不知道该怎么做。