Originally posted by b_rad_1983
Code:
$url = 'http://scores.espn.go.com/mlb/scoreboard?date='.$espnDate; //get the contents of the page $handle = file_get_contents($url); $str = htmlentities($handle);
Code:
$pattern = '/(\d*)-gamebox/'; preg_match_all($pattern,$str,$gameIDs);
Just something to think about if you ever wanted to expand.