I'm getting the following JSON response:
[
{
"startDate": "2012-07-12 11:21:38 +0530",
"totalTime": 0
},
{
"startDate": "2012-07-11 11:27:33 +0530",
"totalTime": 0
},
{
"startDate": "2012-07-16 18:38:37 +0530",
"totalTime": 0
},
{
"startDate": "2012-07-17 14:18:32 +0530",
"totalTime": 0
}
]
i want make array of startDate and totalTime, i have used these two lines but it wont work, please suggest..
$obj = json_decode($dateTimeArr);
$dateAr = $obj->{'startDate'};