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.