I'm trying to cycle through the items I'm getting from a server, with PHP.
The server (not mine) returns data in this format, how can I cycle through each item?
Thank you so much!
{"status":"ok","data":[{"id":1,"userid":"9","foto_arriba":"foto1.jpg","foto_abajo":"foto1.jpg","texto_apoyo":"","habitatid":"4","lugarid":"20"},{"id":2,"userid":"9","foto_arriba":"foto2.jpg","foto_abajo":"foto2.jpg","texto_apoyo":"","habitatid":"4","lugarid":"20"}]}