{"result":{"songs":[{"id":33916732,"name":"别,爱}]},{"songs":[{"id":3654522,"name":"年轮}]}...
有这样一组循环的数组,如何用php获取songs的id值,各位帮帮忙。
回复内容:
{"result":{"songs":[{"id":33916732,"name":"别,爱}]},{"songs":[{"id":3654522,"name":"年轮}]}...
有这样一组循环的数组,如何用php获取songs的id值,各位帮帮忙。
用json_decode() 来解析json数据,之后就用foreach()循环输出
立即学习“PHP免费学习笔记(深入)”;











