1. $json_string='{"id":1,"name":"foo","email":"foo@foobar.com","interest":["wordpress","php"]} ';
2. $obj=json_decode($json_string);
3. echo $obj->name; //prints foo
4. echo $obj->interest[1]; //prints php
2009. szeptember 23., szerda
test
This is a test file to insure that everything is working well.
No response to “test”
Leave a reply