- print_r: documentation ( source)
- simplexml_load_file: documentation ( source)
<?php
$xml = simplexml_load_file("http://www.vytautus.com/hor_rss.xml");
$horoscopes = array();
foreach ($xml->channel->item as $item) {
$horoscopes[$item->title] = $item->description;
}
print_r($horoscopes);
?>