//git:https://github.com/shitoudev/phone-location
function mobile_home($mobile)
{
$mobile = trim($mobile);
$pl = new PhoneLocation();
$info = $pl->find($mobile);
if(is_array($info)){
$province = $info['province'];
$city = $info['city'];
$province .= "省";
$city .= "市";
$home = $province . " " . $city ." 中国".$info['sp'];
return $home;
}else{
return "未找到归属地";
}
}