<?php
$json = '{
"$total": 5,
"$page": 1,
"$next": null,
"$back": null,
"$itemsPerPage": 20,
"$items": [{
"id": "763bd4081dc911e797950a57719b2edb",
"displayed_as": "HMRC Reclaimed (HMRC Rec)",
"$path": "\/contacts\/763bd4081dc911e797950a57719b2edb"
},
{
"id": "764ac2e01dc911e797950a57719b2edb",
"displayed_as": "HMRC Payments (HMRC Pay)",
"$path": "\/contacts\/764ac2e01dc911e797950a57719b2edb"
},
{
"id": "062b3f79261811e797950a57719b2edb",
"displayed_as": "The Texaco Garage",
"$path": "\/contacts\/062b3f79261811e797950a57719b2edb"
}
]
}';
$jsonParsed = json_decode($json, true);
var_dump($jsonParsed['$items'][0]['displayed_as']);
preferences:
64.69 ms | 403 KiB | 5 Q