Getting different RSS Feed order in different browser+PHP -


I am getting the latest RSS feed which has been published using PHP. So here's the idea that every time I have been added to my system, it will get the latest published post.

The problem here is that when I look at RSS feeds in Firefox and Chrome, the result is like this:  Enter image details here



In IE, the results are as follows:
 IE results

Actually the result is quite different, which clearly the IE result was correct (notice the time below the post title). However, in my code it looks like:

  header ('content-type: app / XML'); Echo file_get_contents ('http://sports.espn.go.com/espn/rss/news');   

I'm getting the same result in Firefox, due to which I

please do not get me the latest post to guide me about this one. Any help would be greatly appreciated and rewarded!

Thank you! : -)

This is my solution but it is giving me irreconcilable results due to date formats different RSS Post

  & lt; Php $ doc = new DOMDocument (); $ ArrFeeds = array (); $ Doc- & gt; Load ("http://sports.espn.go.com/espn/rss/news"); Foreign currency ($ doc-> getElementsByTagName ('item') as $ node) {$ itemRSS = array ('title' = & gt; $ node- & gt; getElementsByTagName ('title') - & gt; Items (0) -> NodeValue, 'desc' = & gt; $ node- & gt; getElementsByTagName ('Description') -> Items (0) -> Node Vela, 'Link' = & gt; ; $ Node- & gt; getElementsByTagName ('link') -> item (0) -> nodevalue, 'date' = & gt; $ node-> getElementsByTagName ('pubDate') - & gt; Item (0) -> nodevela); Array_pash ($ arrFeeds, $ itemRSS); To compare purposes #store array} $ newArray = array (); $ ArrFeeds {$ newArray [$ v ['date']] = $ v as foreign currency ($ $ k => $ v) } Ksort ($ newArray); $ Endarray = array (); Forex Currency ($ New Array $ k => $ v) {$ finalArray [] = $ v; } Krsort ($ last arrow); ItemDebug ($ finalArray); Function Madbog ($ value) {resonant "ex <"; Print_r ($ value); Echo "& lt; / pre & gt;"; }? & Gt;   

The result is: Enter image details here < / P>

Thank you!

Comments