Answer the question
In order to leave comments, you need to log in
How to accept JSON in POST request in PHP?
Guys, please tell me how to convert json to a regular array? In the php script, the POST method passes JSON with the following content:
{
"qqq":"www",
"eee":"rrr"
}
$s = json_decode($_POST, true);
var_dump($s);
Answer the question
In order to leave comments, you need to log in
Well, in $_POST, there should probably be some kind of field.
Or
upd: Interesting to read on the topic
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question