function get_snapshot_data ($gamertag) { /* ** Function: get_snapshot_data ** Description: Get's a player's data from their player snapshot. ** Param $gamertag STRING The user's gamertag. ** Author: Clooth ** ** Fetches: ** Total games played ** Experience ** Et cetera */ $username = urlencode( $gamertag ); $source = $this->curl("http://www.bungie.net/stats/halo3/default.aspx?player={$username}"); $source2 = $this->get_between('
| ', ' | ', $source2[$i]); $info[$current] = $this->get_between('', ' | ', $source2[$i+1]); } else { continue; } } $info['Picture'] = 'http://www.bungie.net/stats/halo3/' . $this->get_between('