Home > Article > Backend Development > How to get the value in json in php?
{"result":{"songs":[{"id":33916732,"name":"Farewell, love}]},{"songs":[{"id":3654522,"name":"年wheel}]}...
There is such a set of cyclic arrays. How can I get the id value of songs using php? Can you please help me.
{"result":{"songs":[{"id":33916732,"name":"Farewell, love}]},{"songs":[{"id":3654522,"name":"年wheel}]}...
There is such a set of cyclic arrays. How can I get the id value of songs using php? Can you please help me.
Use json_decode() to parse json data, and then use foreach() to loop the output