Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $feed = simplexml_load_file('http://www.dr.dk/nyheder/service/feeds/allenyheder');
- $taeller = 0;
- $antal = 7;
- foreach ($feed->channel->item as $item) {
- while ($taeller < $antal) {
- print utf8_decode("{$item->title}<hr noshade>");
- break;
- }
- $taeller++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment