//去掉bom头 $result = trim($result, "\xEF\xBB\xBF"); print_r(json_decode($result, true)); 转载于:https://www.cnblogs.com/isuben/p/7873858.html