title: how do i get the content for the last rss feed
body: <p>I have this <a href="http://blog.airdye.com/goodforwater/feed/" rel="nofollow">feed</a> and i just need to parse out the latest rss feed. I basically want to know if i can get the information for the latest one...I have this code that helps parse all the rss feeds but how do i just get the latest</p>
  
  <pre><code>$validCache = false;
  if (file_exists('rss_cache.txt')) {
      $contents = file_get_contents('rss_cache.txt');
      $data = unserialize($contents);
      if (time() - $data['created'] &lt; 24 * 60 * 60) {
          $validCache = true;
          $feed = $data['feed'];
      }
  }
  
  if (!$validCache) {
      $feed = file_get_contents('http://someplace.com/feed/');
      $data = array ('feed' =&gt; $feed, 'time' =&gt; time());
      file_put_contents('rss_cache.txt', serialize($data));
  }
  </code></pre>
  
  <p>EDIT: tried </p>
  
  <pre><code>$xml = simplexml_load_file('http://blog.airdye.com/goodforwater/feed/');
  print_r($xml-&gt;channel-&gt;item[0]);
  </code></pre>
  
  <p>but the description is blank</p>
  
  <pre><code>SimpleXMLElement Object
  (
      [title] =&gt; one textile company gives away water filters and profits
      [link] =&gt; http://blog.airdye.com/goodforwater/2011/05/20/one-textile-company-gives-away-water-filters-and-profits/
      [comments] =&gt; http://blog.airdye.com/goodforwater/2011/05/20/one-textile-company-gives-away-water-filters-and-profits/#comments
      [pubDate] =&gt; Fri, 20 May 2011 20:09:31 +0000
      [category] =&gt; Array
          (
              [0] =&gt; SimpleXMLElement Object
                  (
                  )
  
              [1] =&gt; SimpleXMLElement Object
                  (
                  )
  
              [2] =&gt; SimpleXMLElement Object
                  (
                  )
  
              [3] =&gt; SimpleXMLElement Object
                  (
                  )
  
              [4] =&gt; SimpleXMLElement Object
                  (
                  )
  
          )
  
      [guid] =&gt; http://blog.airdye.com/goodforwater/?p=2673
      [description] =&gt; SimpleXMLElement Object
          (
          )
  
  )
  </code></pre>