1. 问答
  2. 问答详情

PHP接收post来的json数据并解析

PHP接收post来的json数据并解析

1个回答

0

采纳
$json_string = $_POST["json"];
if(ini_get("magic_quotes_gpc")=="1")
{
    $json_string=stripslashes($json_string);
}
$user = json_decode($json_string,true);


撰写答案

验证码
点击刷新