Skip to content
Advertisement

How do i display the NESTED JSON data using php?

I coding a whole day just to display the nested Data from JSON that i got from the Api Provider but nothings gonna change. It’s always error! what should i do? Here’s my code hope you help me in this problem.

Imagine my name of json file is 05-03-21.json. and here’s the JSON Data

JavaScript

And here’s my php code.

JavaScript

All i wanna do is to display the Data with loop something like this. Image here

Advertisement

Answer

just parse the correct array with :

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement