Here is the string: [{"cid":"PWER","data":[{"1567613277000":10541}],"sid":"780160","units":"W","age":5},{"cid":"PWER_SUB","data":[{"1567613272000":384}],"sid":"780630","units":"W","age":10}]
I can't get the value our for Data
I have tried looping through the array with no luck
$arr = json_decode($j,true);
echo $arr[0][0];
Just returns an error
I am trying to get 1567613277000":10541 as the result.
"; echo $arr[5]["data"]; echo "
"; echo $arr[4]['data']; – Dean Sep 04 '19 at 17:05