I have an answer in json, but how can I parse?
Response: (var_dump)
C:\wamp64\www\PHP\index.php:17:
object(stdClass)[1]
public 'success' => boolean true
public 'data' =>
array (size=1)
0 =>
object(stdClass)[2]
public 'key' => string '11111-11111-11111-11111-11111' (length=29)
public 'allowed_acts' => int 1
I tried this code, but dont works
if ($keys) {
$json = json_decode($keys);
//$dump = var_dump($json);
//echo $dump;
echo $json['key'];
}
Fatal error: Cannot use object of type stdClass as array in C:\wamp64\www\PHP\index.php on line 21