search

Home  >  Q&A  >  body text

php - postman cannot get return data

Use postman to submit as shown below, and an empty array is returned. What's going on? Please try to be as understandable as possible when answering...Thank you very much!

仅有的幸福仅有的幸福2844 days ago872

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 12:05:04

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

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 12:05:04

    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.

    reply
    0
  • Cancelreply