-1
(
[0] => stdClass Object
(
[term_id] => 22
[name] => Data Management
[slug] => data-management
[term_group] => 0
[term_taxonomy_id] => 22
[taxonomy] => topic
[description] =>
[parent] => 0
[count] => 1
)
[1] => stdClass Object
(
[term_id] => 24
[name] => High Frequency Travel
[slug] => high-frequency-travel
[term_group] => 0
[term_taxonomy_id] => 24
[taxonomy] => topic
[description] =>
[parent] => 0
[count] => 1
)
)遍歷數組
,我想我們就到名項。
我想:
foreach ($topicArr as $i => $row) {
echo $row['name'];
}
,但我得到一個錯誤說不能使用類型爲stdClass的對象爲數組....我真的不知道我周圍怎麼弄。
任何想法?