Processing math: 0%
随笔 - 41  文章 - 0  评论 - 3  阅读 - 77444
10 2015 档案
json_encode无返回结果
摘要:今天写php curl模拟客户端访问测试一个抽奖post数据,拿回来的数据是json,使用json_decode函数就是没结果,百度谷歌好久。终于发现是BOM的文件头造成的,微软为utf-8文件添加了三个字在文件头部,需要过滤掉才能被decode。result = trim(result, "\... 阅读全文
posted @ 2015-10-28 16:35 就让往事都随风 阅读(899) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示