$res = json_decode($_REQUEST['data'], true);
echo var_dump($res);
array(3) {
["method"]=>
string(4) "init"
["products_id"]=>
string(3) "210"
["ccid"]=>
string(2) "94"
}
获取method的值 echo $res["method"];
echo var_dump($res);
array(3) {
["method"]=>
string(4) "init"
["products_id"]=>
string(3) "210"
["ccid"]=>
string(2) "94"
}
获取method的值 echo $res["method"];