我有一個變量對象,它存儲下面的值。顯示返回對象的值
Array
(
[0] => stdClass Object
(
[term_id] => 1
[name] => Uncategorized
[slug] => uncategorized
[term_group] => 0
[term_taxonomy_id] => 1
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 4
[object_id] => 39
[cat_ID] => 1
[category_count] => 4
[category_description] =>
[cat_name] => Uncategorized
[category_nicename] => uncategorized
[category_parent] => 0
)
)
我現在想要從值列表中顯示slug
。我該怎麼做?
可能重複的[獲取值stdClass的對象PHP(http://stackoverflow.com/questions/11231638/get-values-stdclass-object-php) – markus 2013-03-02 18:57:20