channel['title']; $title = mb_convert_encoding($title, "euc", "auto"); $link = $rss->channel['link']; print "

$title

\n"; print "
\n"; foreach ($rss->items as $item ) { $title = mb_convert_encoding($item['title'], "euc", "auto"); $url = $item['link']; $description = mb_convert_encoding($item['description'], "euc", "auto"); $itemday = date('Y/n/j',strtotime(substr($item['dc']['date'],0,10))); $youbi = array(0 => '(日)', 1 => '(月)', 2 => '(火)', 3 => '(水)', 4 => '(木)', 5 => '(金)', 6 => '(土)'); $mday = date('w',strtotime(substr($item['dc']['date'],0,10))); $itemtime = date('G:i',strtotime(substr($item['dc']['date'],11,8))); print '
'; print $itemday . ' ' .$youbi[$mday] . ' ' . $itemtime . '
'; print '
' . $title . '
' . $description . '
' . "\n"; } print "
\n" ?>