I'm wondering how do i access the 3rd "value"
using PHP in the following:
"data": [
{
"id": "-",
"name": "-",
"period": "-",
"values": [
{
"value": 0,
"end_time": "2011-10-08T07:00:00+0000"
},
{
"value": 0,
"end_time": "2011-10-09T07:00:00+0000"
},
{
"value": 0,
"end_time": "2011-10-10T07:00:00+0000"
}
]
As for now I'm trying to do something with:
$results = json_decode(curl_exec ($curl));
But then I'm stuck because there are 3 "value"
inside of "values"
and to tell you the truth I'm pretty confused..