\n\n"; echo "\n\n"; echo "\n\n"; echo "\n"; echo "MLB Scores\n"; echo "http://www.mlb.com\n"; echo "MLB Scores\n"; echo "en-us\n"; echo "\n"; echo " MLB Scores\n"; echo " http://www.sportsnerdz/scores/mlb.png\n"; echo " http://www.mlb.com\n"; echo "\n"; echo "info@mlb.com\n"; $content = get_content ("http://sports.espn.go.com/mlb/bottomline/scores"); $content_array=explode("&", $content); $scorearray = array(); $i=0; foreach($content_array as $content) { if (strpos($content, "_left")) { $equalpos = strpos($content, "="); $end = strlen($content); $title = substr($content, ($equalpos+1), $end); $title = str_replace("^", "", $title); $title = str_replace("%20", " ", $title); $scorearray[$i]["title"] = $title; } if (strpos($content, "_url")) { $equalpos = strpos($content, "="); $end = strlen($content); $url = substr($content, ($equalpos+1), $end); $url = str_replace("^", "", $url); $url = str_replace("%20", " ", $url); $scorearray[$i]["url"] = $url; $i++; } } foreach($scorearray as $score) { echo "\n"; echo "".$score["title"]."\n"; echo "".$score["url"]."\n"; echo "\n"; } echo "\n"; echo "\n"; ?>