title: Pulling items on an RSS feed based on their published date
body: <p>I'm pulling RSS Feeds from the BBC Sport Website which is displaying items like this:</p>
  
  <pre><code>&lt;item&gt; 
    &lt;title&gt;VIDEO: Warnock on why he left Leeds&lt;/title&gt;  
    &lt;description&gt;Dan Walker is joined for this week's Focus Forum by Neil Warnock, who discusses his departure from Leeds United earlier this month.&lt;/description&gt;  
    &lt;link&gt;http://www.bbc.co.uk/sport/0/football/22136090&lt;/link&gt;  
    &lt;guid isPermaLink="false"&gt;http://www.bbc.co.uk/sport/0/football/22136090&lt;/guid&gt;  
    &lt;pubDate&gt;Tue, 16 Apr 2013 08:27:55 GMT&lt;/pubDate&gt;  
    &lt;media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/66985000/png/_66985898_warnock.png"/&gt;  
    &lt;media:thumbnail width="144" height="81" url="http://news.bbcimg.co.uk/media/images/66985000/png/_66985900_warnock.png"/&gt; 
  &lt;/item&gt;  
  </code></pre>
  
  <p>I only want to pull the items that have been published 7 days before. So far I have:</p>
  
  <pre><code>&lt;?php
    $cnt=0;
  foreach($rss-&gt;channel-&gt;item as $item){
      if ($cnt==100) {
        break;
      }
  foreach($rss-&gt;entry as $item) {
     if ($item-&gt;published) &gt; "") {
    print_r($item);
     }
  ?&gt;
  </code></pre>
  
  <p>Very unsure about the second foreach, searched this website page to page to find an answer but no luck! </p>
  
  <p>Thanks in advance!</p>