$data['LAT'],'long'=>$data['LONG']):false; } /** * Get complete record based on IP. * @param string $ip an IP address * @return array|false array containing results or false on failure */ function geo_get_record($ip) { return ($data = geo_query($ip,'getRecord'))?$data:false; } /** * Get country of an IP. * @param string $ip an IP address * @return string|false array containing results or false on failure */ function geo_get_country($ip) { return ($data = geo_query($ip,'getCountry'))?$data['COUNTRY']:false; } ?>