Basheer H. Basheer H. - 8 months ago 34
JSON Question

Display json data in PHP from API using GET

I have API url looks like this:

when I click on it I got the following data:


How to display and format the response data in PHP page using GET method?


json_decode() is what you are looking.

$link = "your url"

$data = json_decode($link,true);

after decoding the json, you will get a array with the elements in the json