値にアクセスできるようにする必要がありterm_id
ますが、配列に関連付けられている番号またはインデックスがわかりません。どうすればアクセスできますか?
このようにアクセスしますが$value->term_id
、今は値の後に数字を付けてアクセスする必要があります ( $value->[26]->term_id
)。
Array
(
[26] => stdClass Object
(
[term_id] => 26
[name] => Night Life.
[slug] => shopping-and-night-life
[term_group] => 0
[term_taxonomy_id] => 28
[taxonomy] => map_categories
[description] => Most of the late night clubs, bars and pubs in Victoria are situated downtown. Here are a few to check out:
[parent] => 0
[count] => 6
[object_id] => 925
)
)