There is a one-dimensional JSON array
{"city":{"id":2013159,"name":"London", "list": [ {"dt":1459360800,"main":{"temp":-6.55,"temp_min":-6.55,"temp_max":-2.34},"weather":[{"id":800,"main":"Clear","description":"ясно"}], {"dt":1459425600,"main":{"temp":-8.55,"temp_min":-10.55,"temp_max":-4.34},"weather":[{"id":700,"main":"Cloud","description":"Облака"}], {"dt":1459458000,"main":{"temp":-10.56,"temp_min":-15.55,"temp_max":-8.34},"weather":[{"id":600,"main":"Clear","description":"ясно"}] ]} The dt object data is constantly changing "dt": 1459425600 then "dt": 1459458000. How to output the data in PHP corresponding to a specific dt, for example, I want to derive from this array only the data that corresponds to "dt": 1459425600 is:
{"dt":1459425600,"main":{"temp":-8.55,"temp_min":-10.55,"temp_max":-4.34},"weather":[{"id":700,"main":"Cloud","description":"Облака"}] ps do not suggest using an index, only through dt, which I will indicate