channel['title']; $title = mb_convert_encoding($title, $oe, "auto"); $buf = "
$title
\n"; // itemの読み込み foreach ($rss->items as $item ) { // itemタイトル読み込み $title = mb_convert_encoding($item[title], $oe, "auto"); // item description読み込み $description = mb_convert_encoding($item[description], $oe, "auto"); // item url読み込み $url = $item[link]; // Location文字コード変更 $location = mb_convert_encoding($location, $oe, "auto"); // 対象地域のみ表示 if (ereg($location ,$title)) { $buf .= "";
$buf .= "$title
";
$buf .= "$description";
$buf .= "