Парсер RSS-лент новостей

$url = 'http://onfon.net/rss.php';

$xml = xml_parser_create();
xml_parser_set_option($xml, XML_OPTION_SKIP_WHITE,1);
xml_parse_into_struct($xml, file_get_contents($url), $el, $fe);
xml_parser_free($xml);

//print_r($fe);
//print_r($el);

for($i=0; $i<5; $i++){
   $m = $fe['ITEM'][$i];
   $title = $el[$m+1]['value'];
   $link = $el[$m+2]['value'];
   $time = $el[$m+4]['value'];
   $desc = mb_substr( $el[$m+3]['value'], 0, 80, 'UTF-8');
   echo '<br/><strong>'.$title.'</strong> <br/>['.
    $time.']<br/>'.$desc.'<br/><a href="'.$link.'">читать...</a>';
}

.