天气api(经过城市名查询天气)

public function show(){ //一、初始化 $ch = curl_init(); //二、设置参数 $url = 'http://wthrcdn.etouch.cn/weather_mini?city=北京市'; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_
相关文章
相关标签/搜索