I want to retrieve an elements of object from an array
I tried with but didn't get
$api_response_decode['data']->stdClass->sales->stdClass
here is my array
[data] => stdClass Object
(
[sales] => stdClass Object
(
[clothing] => 2
[men] => 0
[children] => 4
)
)
I want to get
[clothing]
[men]
[children]