且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将json数组插入到mysql数据库中

更新时间:2023-01-07 08:09:54

 $json = file_get_contents('php://input');
 $obj = json_decode($json,true);

我认为您传递了错误的变量.您应该在 json_decode 中传递 $json,如上所示.

I think you are passing the wrong variable. You should pass $json in json_decode as shown above.