<?php $response = '{"items": [{"id":"1","food":"rice","Amount":"100","condition":"paid"}, {"id":"2","food":"beans","Amount":"200","condition":"paid"}, {"id":"3","food":"yam","Amount":"50","condition":"not paid"}, {"id":"4","food":"tomatoes","Amount":"100","condition":"paid"}, {"id":"5","food":"potato","Amount":"700","condition":"paid"}]}'; $arr = json_decode($response, true); var_dump($arr); echo $arr['items'][1]['food']; // beans
You have javascript disabled. You will not be able to edit any code.