我想从一个数组如何从数组中检索对象?
我试图用,但没有得到
$api_response_decode['data']->stdClass->sales->stdClass
这里检索对象的元素是我的数组
[data] => stdClass Object
(
[sales] => stdClass Object
(
[clothing] => 2
[men] => 0
[children] => 4
)
)
我想
[clothing]
[men]
[children]
'stdClass'是对象类型,而不是属性名称.... – user193130