参考博客文章
$json_string = 'http://api.xuandan.com/DataApi/HotGoods?AppKey=tspgnv6wpn&type=2&page=1&pagesize=10';//获得json的url$data = curl_file_get_contents($json_string);//通过方法获得json串