(.*)<\/title>/",$rss,$it); preg_match_all("/(.*)<\/link>/",$rss,$it_link); $i = 2; while($i < 7) { if(!empty($it[1][$i])) { echo stripslashes("\n -- ".$it[1][$i].""); $i++; } } echo "\n"; ?>