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!
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.
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.