Using this below as an example of a JSON response I would get from an API using PHP
[
{
"profile_background_tile": true,
"listed_count": 82,
"status": {
"created_at": "Fri Apr 20 20:06:12 +0000 2012",
"place": null,
},
"default_profile": false,
"created_at": "Tue Oct 25 00:03:17 +0000 2011"
}
]
I would use something like this...
$obj = json_decode($json);
foreach($obj as $index => $user) {
echo $user->profile_background_tile;
echo $user->listed_count;
echo $user->status;
echo $user->default_profile;
echo $user->created_at;
}
Now where I need some help is in the JSON response under status there is created_at and place
I do not know how to access those items?