php解析 JSON 数据

作者:袖梨 2022-06-24
 代码如下 复制代码
$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

相关文章

精彩推荐