load(‘http://highscore.com/league/rss.php?a=582E50F733C040E7B2BEB041132FFE65’);

$feed = array();
foreach ($rss->getElementsByTagName(‘item’) as $node) {
$item = array (
‘title’ => $node->getElementsByTagName(‘title’)->item(0)->nodeValue,
‘desc’ => $node->getElementsByTagName(‘description’)->item(0)->nodeValue,
‘link’ => $node->getElementsByTagName(‘link’)->item(0)->nodeValue,
‘author’ => $node->getElementsByTagName(‘author’)->item(0)->nodeValue,
‘category’ => $node->getElementsByTagName(‘category’)->item(0)->nodeValue,
‘date’ => $node->getElementsByTagName(‘pubDate’)->item(0)->nodeValue,
);
array_push($feed, $item);
}

$limit = count($feed);
echo “

\n”;
echo “

\n”;
echo ”

\n”;
echo ”

\n”;
echo ”

\n”;
echo ”

\n”;
echo ”

\n”;
echo ”

\n”;
$lastMachine = “”;
$rank = 1;
for($x=0;$x<$limit;$x++) { $machine = str_replace(' & ', ' & ', $feed[$x]['title']); if ($machine == $lastMachine) { $rank++; } else { $rank = 1; } $link = $feed[$x]['link']; $score = $feed[$x]['desc']; $player = $feed[$x]['author']; $date = date('l F d, Y', strtotime($feed[$x]['date'])); $aBegin = "“;
$aEnd = “
“;
echo ”

\n”;
if ($machine == $lastMachine) {
echo ”

\n”; // machine
echo ”

\n”; // rank
echo ”

\n”; // score
echo ”

\n”; // player
} else {
echo ”

\n”; // machine
echo ”

\n”; // rank
echo ”

\n”; // score
echo ”

\n”; // player
}
echo ”

\n”;
$lastMachine = $machine;

}
echo “

Machine Rank Score Player
  #$rank $aBegin$score$aEnd $player $machine #$rank $aBegin$score$aEnd $player

\n”;
?>