php 如何将获取json中的某一组参数的值 20
json数据格式如下:{"msg":"ok","list":[{"id":"1","type":"1","content":"ABC"},{"id":"2","type"...
json数据格式如下:
{"msg":"ok","list":[
{"id":"1","type":"1","content":"ABC"},
{"id":"2","type":"2","content":"ABCD"},
{"id":"3","type":"3","content":"ABC"},
{"id":"4","type":"1","content":"ABCDE"},
{"id":"5","type":"2","content":"ABCFG"},
{"id":"6","type":"1","content":"ABDG"},
{"id":"7","type":"1","content":"ABDE"},
]}
请问用php如何读取并输出 "type":"1" 的所有id,content数据,求大神帮助,谢谢! 展开
{"msg":"ok","list":[
{"id":"1","type":"1","content":"ABC"},
{"id":"2","type":"2","content":"ABCD"},
{"id":"3","type":"3","content":"ABC"},
{"id":"4","type":"1","content":"ABCDE"},
{"id":"5","type":"2","content":"ABCFG"},
{"id":"6","type":"1","content":"ABDG"},
{"id":"7","type":"1","content":"ABDE"},
]}
请问用php如何读取并输出 "type":"1" 的所有id,content数据,求大神帮助,谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询