Receive JSON POST with PHP

前端 未结 7 2330
Happy的楠姐
Happy的楠姐 2020-11-21 04:42

I’m trying to receive a JSON POST on a payment interface website, but I can’t decode it.

When I print :

echo $_POST;

I get:

7条回答
  •  情话喂你
    2020-11-21 05:26

    Read the doc:

    In general, php://input should be used instead of $HTTP_RAW_POST_DATA.

    as in the php Manual

提交回复
热议问题