PHP使用api的兩種方法 1.用file_get_contents()函數 2.用php的curl拓展 $url2 = 'http://www.sojson.com/open/api/weath ...