I'm trying to create RSS FEED This feed does not validate. From
<pubDate><?php echo $topNewest->data['last_update'] ?></pubDate>
echo <pubDate>2012-10-02 13:00:00</pubDate>
I want replace element must be an RFC-822 date-time
<pubDate>Wed, 02 Oct 2002 13:00:00 GMT</pubDate>
Use the
DateTime
class in php which has RFC822 built inYou can change the format if you need, look at php.net/date