channel->item; $arrayA = array(); /* foreach ($hits as $hit) { $date=date("YmdHis",strtotime($hit->pubDate)); $arrayA["$date"]=date("Y年m月d日 ",strtotime($hit->pubDate)).''.h($hit->title).'by レフティーゴルファー
'; } */ $url = "http://blog.30smash.com/index.xml"; $xml=simplexml_load_file($url); $hits = $xml->channel->item; foreach ($hits as $hit) { $date=date("YmdHis",strtotime($hit->pubDate)); $arrayA["$date"]=date("Y年m月d日 ",strtotime($hit->pubDate)).''.h($hit->title).'
'; } rsort($arrayA); foreach ($arrayA as $hit) { echo $hit; } ?>