我使用 php 非常糟糕。我不是程序员,只是为我的私人事情做一些事情。我有这样一个问题,我想从我的光伏生产中下载数据。数据格式如下。如何分别从php中的一个url下载数据,将它们分组并发送到数组?预先感谢您的所有帮助。
{"sid":62923,"dataunit":"kWh","data":[{"time":"2019-08-01","no":"1","value":"27.7"}, {"time":"2019-08-02","no":"2","value":"24.0"},{"time":"2019-08-03","no":"3" ,"value":"19.9"},{"time":"2019-08-04","no":"4","value":"25.3"},{"time":"2019-08- 05","no":"5","value":"0.0"},{"time":"2019-08-06","no":"6","value":"0.0"}, {"time":"2019-08-07","no":"7","value":"0.0"},{"time":"2019-08-08","no":"8","value":"0.0"},{"time":"2019-08-09","no":"9","value":"0.0"},{"time ":"2019-08-10","no":"10","value":"0.0"},{"time":"2019-08-11","no":"11","value ":"0.0"},{"time":"2019-08-12","no":"12","value":"0.0"},{"time":"2019-08-13", "no":"13","value":"0.0"},{"time":"2019-08-14","no":"14","value":"0.0"},{"time ":"2019-08-15","no":"15","value":"0.0"},{"time":"2019-08-16","no":"16","value":"0.0"},{"time":"2019-08-17","no":"17","value":"0.0"},{"time":" 2019-08-18","no":"18","value":"0.0"},{"time":"2019-08-19","no":"19","value":" 0.0"},{"time":"2019-08-20","no":"20","value":"0.0"},{"time":"2019-08-21","no" :"21","value":"0.0"},{"time":"2019-08-22","no":"22","value":"0.0"},{"time":" 2019-08-23","no":"23","value":"0.0"},{"time":"2019-08-24","no":"24","value":"0.0"},{"time":"2019-08-25","no":"25","value":"0.0"},{"time":"2019- 08-26","no":"26","value":"0.0"},{"time":"2019-08-27","no":"27","value":"0.0" },{"time":"2019-08-28","no":"28","value":"0.0"},{"time":"2019-08-29","no":" 29","value":"0.0"},{"time":"2019-08-30","no":"30","value":"0.0"},{"time":"2019- 08-31","no":"31","value":"0.0"}]}2019-08-25","no":"25","value":"0.0"},{"time":"2019-08-26","no":"26","value":" 0.0"},{"time":"2019-08-27","no":"27","value":"0.0"},{"time":"2019-08-28","no" :"28","value":"0.0"},{"time":"2019-08-29","no":"29","value":"0.0"},{"time":" 2019-08-30","no":"30","value":"0.0"},{"time":"2019-08-31","no":"31","value":" 0.0"}]}2019-08-25","no":"25","value":"0.0"},{"time":"2019-08-
拉风的咖菲猫