PHP格式化解析Json字符串:
PHP解析Json字符串,Php操作Json对象,PHP格式化Json字符串
$json_string='{"id":1,"name":"yunjson.com","email":"admin@yunjson.com","interest":["Json解析","php"]} '; $obj=json_decode($json_string); echo $obj->name; //prints foo echo $obj->interest[1]; //prints php