Answer the question
In order to leave comments, you need to log in
PHP input json_decode empty what's wrong?
This code works great:
$json = json_decode(file_get_contents('php://input'));
var_export($json);
class name{
public function __construct()
{
$json = json_decode(file_get_contents('php://input'));
var_export($json);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question