-
channel->item;
foreach($items as $item){
if($compteur > $nb_articles) break;
$title = $item->title;
$link = $item->link;
$published_on = substr($item->pubDate, 5, 12);
$descriptionshort = substr(strip_tags($item->description), 0, 50);
echo ‘
- ‘.$title.’
‘; echo substr(strip_tags($item->description), 0, 250).’ ‘;
$compteur++;
}
?>