I only see bulleted list on a page when loading this script to read RSS feeds. What am I not doing right?
<html>
<head>
<title>RSS Feed Test</title>
</head>
<body>
<?php
function fetchFeeds($url){
$feed = simplexml_load_file($url);
echo "<ul>";
foreach($feed->channel->item as $itementry){
echo "<li><a href='$itementry->link' title='$itementry->title'.$itementry->title"."</a></li>";
}
echo "</ul>";
}
echo fetchFeeds("http://rss.cnn.com/rss/cnn_topstories.rss");
?>
</body>
</html>