How can i I access propery of this type of data:
$live = =array:17 [▼
"sensex" => {#1130 ▼
+"code": "200"
+"message": "Success"
+"data": {#1131 ▼
+"HIGH": "36551.86"
}
}
"nifty_50" => {#1132 ▶}
"nasdaq" => {#1134 ▶}
I am trying to access value of 'HIGH' property for $live
variable in php. I have tired with below code but its give me error:
DD($live->sensex->data);
Error:
Trying to get property 'sensex' of non-object
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire