php去除bom头

//去掉bom头
$result = trim($result, "xEFxBBxBF");
print_r(json_decode($result, true));
原文地址:https://www.cnblogs.com/isuben/p/7873858.html