How to cURL jSON data in PHP

This is something I always have to Google every time I need it so here it is.

If you are playing with API's it probably uses a GET method such as:

This kinds of API usually return jSON data, which is great. Here's how cURL this URL and parse the jSON data using PHP:

Leave a Reply

Add <code> Some Code </code> by using this tags.