I have this json array output:
{"Results":{"Info":[{"type":"INFO","code":"XSD","category":"XSD Val","message":"Very good result","status":"PASS"}],"warningMessages":[],"errorMessages":[],"status":"PASS"},"Status":"OK","clearanceStatus":null,"qrSellertStatus":null,"qrBuyertStatus":null}
And want to pass varray values inside php variable:
$type="INFO";
$message = "Very good result";
$status = "PASS";
How can I achieve it in php ?
I tried to use json_decoded
$json = json_decode($array);
echo $json ['Results']['Info']['type'];
echo $json ['Results']['Info']['type']['message'];
But I got this error:
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /home/
Thanks for all