$var
是一个数组:PHP调用树对象
Array (
[0] => stdClass Object ([ID] => 113 [title] => text)
[1] => stdClass Object ([ID] => 114 [title] => text text text)
[2] => stdClass Object ([ID] => 115 [title] => text text)
[3] => stdClass Object ([ID] => 116 [title] => text)
)
我们怎么能说[title]
一些[ID]
? (不接触[0], [1], [2], [3]
)
一样,如果我们调用$var['114']['title]
它应该给text text text
CMS创建此数组。问题已更新。 – James 2010-08-06 14:31:17
@Ignatz并说CMS不提供更好的方式来访问数据? – NullUserException 2010-08-06 14:41:37
@Ignatz答案已更新 – NullUserException 2010-08-06 15:09:33