Answer the question
In order to leave comments, you need to log in
How to calculate difference between values in JSON?
We have a data.json file with the following content
[
["11.09.2018","222"],
["12.09.2018","392"],
["13.09.2018","485"],
["14.09.2018","449"],
["15.09.2018","449"],
["16.09.2018","467"]
]
[
["1","170"], //392-222
["2","93"], //485-392
И так далее
$file = file_get_contents('data.json');
$list = json_decode($file,TRUE);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question