【发布时间】:2012-05-28 03:42:03
【问题描述】:
所以我将此数组保存在变量标题$arr 中。我想抓取或回显 [slug] 的值
Array ( [0] => stdClass Object ( [term_id] => 11
[name] => Community Service
[slug] => community-service
[term_group] => 0
[term_taxonomy_id] => 11
[taxonomy] => category
所以我想要这样的东西
回声 $arr[蛞蝓]
然后会显示“社区服务”。我确信这很容易,但我不知道如何从数组 stdClass 中获取值并将其回显到页面上。谢谢。
【问题讨论】:
-
这些数据是否来自对
json_decode()的调用?