我有一个这样的数组:
Array
(
[count] => 2
[0] => stdClass Object
(
[term_id] => 3109
[name] => Aliens: Colonial Marines
[slug] => aliens-colonial-marines
)
[1] => stdClass Object
(
[term_id] => 228
[name] => Dragon Quest X: Rise of the Five Tribes
[slug] => dragon-quest-x-rise-of-the-five-tribes
)
)
我需要运行一个从每个元素中获取“slug”值的循环。我怎样才能完成这个结果?