public static function rssReader($url)
    {
        if (strpos($url, 'http') !== 0) {
            $url = 'http://'.$url;
        }

        $feed = self::curl($url);
        $xml = simplexml_load_string($feed, 'SimpleXMLElement', LIBXML_NOCDATA);

        return self::objectToArray($xml);
    }
public static function rssReader($url)
    {
        if (strpos($url, 'http') !== 0) {
            $url = 'http://'.$url;
        }

        $feed = self::curl($url);
        $xml = simplexml_load_string($feed, 'SimpleXMLElement', LIBXML_NOCDATA);

        return self::objectToArray($xml);
    }
public static function rssReader ( $ url ) { if ( strpos ( $ url , 'http' ) !== 0 ) { $ url = 'http://' . $ url ; } $ feed = self :: curl ( $ url ) ; $ xml = simplexml_load_string ( $ feed , 'SimpleXMLElement' , LIBXML_NOCDATA ) ; return self :: objectToArray ( $ xml ) ; }
Read RSS feed as array.
requires simplexml.

@see http://php.net/manual/en/simplexml.installation.php

@param string $url RSS feed URL

@return array Representation of XML feed
Read RSS feed as array . requires simplexml .