所以我将这个数组保存在变量标题$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()'调用? –