'; foreach ( $sked_json as $game ) { $date = $game->est; $game_date = date( 'Ymd', strtotime( $date ) ); if( $game_date != $todays_date ) { continue; } $game_id = substr( $game->id, -4 ); $streams = file_get_contents( 'http://smb.cdnak.neulion.com/fs/nhl/mobile/feed_new/data/streams/2013/ipad/02_'.$game_id.'.json' ); $streams_json = json_decode( $streams ); $output .= '
  • '; $output .= $game->a . ' @ ' . $game->h . ' - ' . date( 'g:i a', strtotime( $game->est) ) . ' EST'; $output .= ''; $output .= '
  • '; } $output .= ''; echo $output; ?>