Return to Snippet

Revision: 16870
at August 18, 2009 05:22 by level09


Initial Code
$json_string='{"id":1,"name":"foo","email":"[email protected]","interest":["wordpress","php"]} ';
$obj=json_decode($json_string);
echo $obj->name; //prints foo
echo $obj->interest[1]; //prints php

Initial URL

                                

Initial Description

                                

Initial Title
Parse JSON Data

Initial Tags

                                

Initial Language
PHP