# getip **Repository Path**: yangxgkem/getip ## Basic Information - **Project Name**: getip - **Description**: 通过ip来判断用户所在区域国家、身份、城市、 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2017-06-03 - **Last Updated**: 2021-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #getip 通过传入ip读取用户所在国家、身份、城市、 $arr = Array( "country_code" => $record->country_code, //国家代码 "country_name" => $record->country_name, //国家 "region" => $GEOIP_REGION_NAME[$record->country_code][$record->region], //地区 "city" => $record->city, //城市 "postal_code" => $record->postal_code, //邮政编码 "latitude" => $record->longitude.", ".$record->latitude, //经纬度 "continent_code" => $record->continent_code //区域 );