rss avec interateur

{
$text = substr ( $text , 0 , $size).’ …’ ;
}
return $text;
}
$xml = simplexml_load_file($flux);
echo ‘<ul”>’.”n”;
$i = 0;
foreach ( $xml->channel->item as $value)
{
if ( $i < $nb_items )
{
echo ‘

’.”n”;
echo ”.”n”;
}
$i++;
}
echo ‘

’.”n”;
?>