I am fetching data from JSON in the form of PHP array. But I am not able to fetch it due to strange OBJECT titles.
E.g. here is simply example
[car] => stdClass Object
(
[model] => stdClass Object
(
[year] => 2018
[company] => Honda
[condition] => Good
)
)
Now I can fetch "condition" like this $car->model->condition;
But in my case, the JSON is like this
[car] => stdClass Object
(
[field_set_key="profile",username="sammy"] => stdClass Object
(
[year] => 2018
[company] => Honda
[condition] => Good
)
)
I am not able to fetch "condition" value due to this strange object [field_set_key="profile",username="sammy"]
What should I do?
$car->[ ?????? ]->condition;