handle_content_type(); $feed->set_output_encoding('big5'); $max = $feed->get_item_quantity($max_items); // Initialize the feed object $feed->init(); // This will work if all of the feeds accept the same settings. $feed->handle_content_type(); echo "
    \n"; for ($i=0; $i < $max; ++$i) { $item = $feed->get_item($i); $f = $item->get_feed(); $s = $f->get_title(); $t = $feed_titles[$s]; if ($t) { $s = $t; } else { foreach ($feed_titles as $key=>$val) { if (strstr($s, $key)) $s = $val; } } echo '
  1. '; if (sizeof($feeds) > 1) { echo '[' . $s . '] '; } echo $item->get_date('m/d H\h: ') . '' . $item->get_title() . "
  2. \n"; } echo "
"; // see http://simplepie.org/wiki/tutorial/sort_multiple_feeds_by_time_and_date } ?>