所以我將這個數組保存在變量標題$arr
中。我想抓住或echo [塞]的值PHP Array stdClass對象 - 回聲值
Array ([0] => stdClass Object ([term_id] => 11
[name] => Community Service
[slug] => community-service
[term_group] => 0
[term_taxonomy_id] => 11
[taxonomy] => category
所以我想這樣的事情
回聲$改編[塞]
那麼這將顯示「社區服務」。我相信這是非常容易的,但我不知道如何從數組stdClass中獲取值並在頁面上回顯它。謝謝。
這些數據是否來自'json_decode()'調用? –