I have the following which is json data and using PHP json_decode it translates to the shown associative arrays, what I need to do is to then access each individual value but so far nothing I tried worked!
json string is:-
$jsonstr = {"daily":[[1717545600000,0.0],[1717632000000,0.0]]};
and is decoded to this by doing:-
$outjson = json_decode($jsonstr, true);
and printed by
print_r($outjson);
which gives this:-
Array
(
[daily] => Array
(
[0] => Array
(
[0] => 1717545600000
[1] => 0
)
[1] => Array
(
[0] => 1717632000000
[1] => 0
)
)
)
Initially I'd be happy to just use the echo command in PHP to display each value.
Stuart