MySQL interesse |
|
Zoiets?
<?php
$aantal = 10;
$xml = simplexml_load_file('http://www.nu.nl/feeds/rss/algemeen.rss');
$i = 0;
foreach($xml->channel->item as $item)
{
$i++;
if($i <= $aantal)
{
echo '<li class="feed">' . '<a href="" target="_top">' . $item->title . '</a>' . '</li>';
}
}
?>
<?php $aantal = 10; $xml = simplexml_load_file('http://www.nu.nl/feeds/rss/algemeen.rss'); $i = 0; foreach($xml->channel->item as $item) { $i++; if($i <= $aantal) { echo '<li class="feed">' . '<a href="" target="_top">' . $item->title . '</a>' . '</li>'; } } ?>
|