Jump to content

Json Response & How To Read Value


MoFish

Recommended Posts

Hi,

 

I'm getting the following response using:

$json_object = json_decode($unparsed_json, true);
array(1) {
  ["google.com"]=>
  array(2) {
    ["status"]=>
    string(16) "regthroughothers"
    ["classkey"]=>
    string(6) "domcno"
  }
}

How do I echo the attribute of the ['status']? I have tried using:

echo $json_object->['status'];

Thanks,

 

MoFish

Link to comment
https://forums.phpfreaks.com/topic/291571-json-response-how-to-read-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.