更新履歴
お知らせ ・・・最新情報はお知らせ twitter で!
channel['title']; $rss->items = array_slice($rss->items, 1, 100); echo "- \n";
foreach ($rss->items as $item ) {
$title = $item['title'];
$description = $item['description'];
$description = str_replace("br","
- ・$date
- 〔$category〕$title $description
",$description); $title = str_replace("strong","",$title); $title = str_replace("endstr","",$title); $category = $item['category']; $date = $item['pubdate']; date_default_timezone_set('Asia/Tokyo'); $year = date("Y年m月d日", strtotime($date)); $search = array('Sun','Mon','Tue','Wed','Thu','Fri','Sat'); $replace = array('(日)','(月)','(火)','(水)','(木)','(金)','(土)'); $wday = str_replace($search,$replace,$date); $wday = substr($wday, 0, -28); $date = $year . $wday; $title = mb_convert_encoding($title, "utf-8", "auto"); $link = $item['link']; echo "