Saturday , February 23 2019
Home / PHP / Parse JSON Data Using PHP

Parse JSON Data Using PHP

With most of the popular web services like Twitter providing their data through APIs, it is always helpful to know how to parse API data which is sent in various formats including JSON, XML etc. 

$json_string='{“id”:1,”name”:”foo”,”email”:””,”interest”:[“wordpress”,”php”]} ‘;
echo $obj->name; //prints foo
echo $obj->interest[1]; //prints php

About admin

Check Also

Resize Images in php

Creating thumbnails of the images is required many a times, this code will be useful ...

Leave a Reply