/ Published in: 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
echo $obj->name; //prints foo echo $obj->interest[1]; //prints php