curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);//设置返回值不直接输出,例如返回xml格式,会将xml原样输出 转载于:https://www.cnblogs.com/xiaobiaomei/p/9969200.html