标签:
$json_string=‘{"id":1,"name":"jb51","email":"admin@jb51.net","interest":["wordpress","php"]} ‘; $obj=json_decode($json_string); echo $obj->name; //prints foo echo $obj->interest[1]; //prints php
标签:
原文地址:http://www.cnblogs.com/liaocheng/p/4238466.html