function RSS_Channel($channel) { global $Common_Content; $items = $channel->getElementsByTagName("item"); // Processing channel RSS_Tags($channel, 0); // get description of channel, type 0 // Processing articles foreach ($items as $item) { RSS_Tags($item, 1); // get description of article, type 1 } }
function RSS_RetrieveLinks($url) { global $RSS_Content; $doc = new DOMDocument(); $doc->load($url); $channels = $doc->getElementsByTagName("channel"); $RSS_Content = array(); foreach ($channels as $channel) { $items = $channel->getElementsByTagName("item"); foreach ($items as $item) { $y = RSS_Tags($item, 1); array_push($RSS_Content, $y); } } }
function RSS_Channel($channel) { $RSS_Content = array(); $items = $channel->getElementsByTagName("item"); // Processing channel $y = RSS_Tags($channel, 0); // get description of channel, type 0 array_push($RSS_Content, $y); // Processing articles foreach ($items as $item) { $y = RSS_Tags($item, 1); // get description of article, type 1 array_push($RSS_Content, $y); } return $RSS_Content; }