<?php $string = '{ "contacts": [{ "addedAt": 1414182103652, "vid": 2, "canonical-vid": 2, "merged-vids": [], "portal-id": 448845, "is-contact": true, "properties": { "firstname": { "value": "Andre" }, "lastmodifieddate": { "value": "1472024018755" }, "company": { "value": "test" }, "lastname": { "value": "Jansen" } } }] }'; $json = json_decode($string,true); foreach ($json['contacts'][0]['properties']['company'] as $person) { echo $person; }
You have javascript disabled. You will not be able to edit any code.