Location: PHPKode > scripts > SMS Twitter to India > sms-twitter-to-india/rssTwitter.php
<?php
/*****************************************************************************************************************************************************
Author - Dharmveer Motyar
web - dharmmotyar.000space.com
chat - hide@address.com
mail me - hide@address.com
This is the class parse 
$url is the url of your rss feed xml
this class actually works for you twitter RSS
*****************************************************************************************************************************************************/
class TwiterRSS{
      function getRSS($url){
      	$doc = new DOMDocument();
      	$doc->load($url);
      	$arrFeeds = array();
      	foreach ($doc->getElementsByTagName('item') as $node) {
      		$itemRSS = array ( 
      			'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
      			'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
      			'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
      			'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
      			);
      		array_push($arrFeeds, $itemRSS);
      	}
      	//echo '<pre>';
      //print_r($arrFeeds);
      return $arrFeeds; 
     }
}
?>


Return current item: SMS Twitter to India