我有一个URL传递参数,使用json_encode对每个值进行如下处理:
$json = array
(
'countryId' => $_GET['CountryId'],
'productId' => $_GET['ProductId'],
'status' => $_GET['ProductId'],
'opId' => $_GET['OpId']
);
echo json_encode($json);
它返回了以下结果:
{
"countryId":"84",
"productId":"1",
"status":"0",
"opId":"134"
}
我可以使用json_decode
来解析每个值以进行进一步的数据处理吗?
谢谢。