About Limiting Rss Feed
<p>I want only the latest 5 feeds to be shown on my website.<br>
I am using the following code to fetch rss feed... Can any one help to limited feeds to be shown... Thank You In ADVANCE :)</p>

<p>CODE THAT AM USING</p>

<pre><code>&lt;?php
 require_once('rss_fetch.inc');

 $url = 'http://news.google.com/news?ned=us&amp;topic=h&amp;output=rss';

 $rss = fetch_rss($url);

 echo "Site: ", $rss-&gt;channel['title'], "&lt;br&gt;\n";
 foreach ($rss-&gt;items as $item ) {
   $title = $item['title'];
   $url   = $item['link'];
   $desc = $item['description'];
   $category = $item['category'];
   echo "&lt;a href=$url&gt;$title&lt;/a&gt;$desc &lt;br/&gt;CATEGORY : $category &lt;br/&gt;&lt;br/&gt; ";
 }
?&gt;
</code></pre>
