帮我看看这个函数是不是有问题?

@Ta 2014-01-17 2751点击
rt
echo taobao_m("号码"); 
//归属地
 function taobao_m($word){
$tmapi = "http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=".$word;
 $fetch = new SaeFetchurl();
$content = $fetch->fetch($tmapi);
$content = iconv("gb18030","UTF-8",
$content);
$jso1 = "/province:\'(.*)\'\,/";
$jso2 = "/catName:\'(.*)\'\,/";
preg_match_all($jso1,$content,$arr1);
preg_match_all($jso2,$content,$arr2);
if(count($arr1) > 1){
return $arr1[1][0]."\n".$arr2[1][0];
}else
return "请重新输入电话号码!";
}
回复列表(5|隐藏机器人聊天)
添加新回复
回复需要登录