php holt sich Werte von json encode
Ich habe eine URL übergeben Parameter verwenden json_encode jeweils Werte wie folgt:
$json = array
(
'countryId' => $_GET['CountryId'],
'productId' => $_GET['ProductId'],
'status' => $_GET['ProductId'],
'opId' => $_GET['OpId']
);
echo json_encode($json);
Das Ergebnis lautet:
{
"countryId":"84",
"productId":"1",
"status":"0",
"opId":"134"
}
Kann ich benutzenjson_decode
jeden Wert für die weitere Datenverarbeitung zu analysieren?
Vielen Dank.