<?php $json = '{ "responseCode": 200, "message": "success", "content": [{ "id": "237955080346633702", "form_id": "31751954731962", "ip": "123.123.123.123", "created_at": "2013-06-25 03:38:00", "updated_at": "2013-06-27 04:58:00", "status": "ACTIVE", "new": "1", "answers": { "1": { "text": "Name", "type":"control_fullname", "answer": { "first": "LeBron", "last": "James" }, "prettyFormat": "LeBron James" }, "2": { "text": "Your Message", "type": "control_textarea", "answer":"¡Ay, caramba!" } }}] }'; foreach (json_decode($json, true)['content'] as $set) { echo "{$set['answers'][1]['answer']['first']} {$set['answers'][1]['answer']['last']}\n"; }
You have javascript disabled. You will not be able to edit any code.