php file_get_contents json_decode 输出为NULL

解决办法一:
不小心在返回的json字符串中返回了BOM头的不可见字符,某些编辑器默认会加上BOM头,如下处理才能正确解析json数据:
$info = json_decode(trim($info,chr(239).chr(187).chr(191)),true);