php - postman无法获取返回数据
仅有的幸福
仅有的幸福 2017-05-16 12:03:04
0
2
764

用postman按照下图方式提交,返回空数组,这是怎么回事?麻烦解答时尽可能通俗易懂些....非常感谢!

仅有的幸福
仅有的幸福

reply all (2)
巴扎黑

echo json_encode($a);
Try this...

    滿天的星座

    First of all, you chose post. There should be no value passed in your body. You probably wrote invalid parameters in the header, so an error was reported. You use get, pass the value in the browser address, and then use $_GET to receive it, then use echo in test.php without return.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!