如何将JSON字符串转换为数组
echo $str='{
action : "create",
record: {
type: "n$product",
fields: {
n$name: "Bread",
n$price: 2.11
},
namespaces: { "my.demo": "n" }
}
}';
$json = json_decode($str, true);
慕森王
BIG阳
郎朗坤
有只小跳蛙
随时随地看视频慕课网APP