<?php $json = '[ { "guid": "12", "firstName": "James", "middleName": "", "gender": "male", "additional": { "skype": "", "phones": [], "sipPhones": [], "birthDate": "1970-06-02", "startWithCustomer": "2015-12-07", "endOfProbation": "2016-03-07", "Place": [ { "label": "abc", "link": "http://" }, { "label": "cde", "link": "http://" } ] } }]'; $user = json_decode($json, true); $lastPlace = end($user[0]['additional']['Place']); var_dump($lastPlace);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`