我收到一个包含以下信息的对象
Array ( [0] => stdClass Object ( [campaigns_id] => 100 [views] => 28 )
[1] => stdClass Object ( [campaigns_id] => 99 [views] => 346 )
[2] => stdClass Object ( [campaigns_id] => 98 [views] => 73 )
[3] => stdClass Object ( [campaigns_id] => 97 [views] => 204 )
[4] => stdClass Object ( [campaigns_id] => 96 [views] => 10 )
[5] => stdClass Object ( [campaigns_id] => 57 [views] => 12 )
)
基本上,它的每一行都有两个值——一个 ID 和一个视图计数。
如果我的“活动 ID”为“100”,我将如何成功地从该对象中获取数字“28”?