标签:
<?php require_once ‘./source/class/class_core.php‘; C::app()->init(); $sql = "select ufielddata from ultrax.pre_forum_activityapply"; $result = DB::fetch_all($sql); foreach ($result as $key => $value) { foreach ($value as $valuevalue) { $array = unserialize($valuevalue); foreach ($array as $key => $valuevaluevalue) { $back = file_get_contents("http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=".$valuevaluevalue[‘mobile‘]); $backArray = explode("province:", $back); $province = explode(",",$backArray[1]); echo $valuevaluevalue[‘mobile‘]."---".$province[0]."<br />"; } } } ?>
标签:
原文地址:http://www.cnblogs.com/LoveJulin/p/4453413.html