【发布时间】:2011-09-29 23:21:17
【问题描述】:
我尝试了太多东西来从下面的代码中读取 [label] 的值:
Array ( [0] =>
SimpleXMLElement Object
(
[id] => x
[published] => 2011
[category] =>
Array ( [0] =>
SimpleXMLElement Object
(
[@attributes] =>
Array (
[scheme] => y
[term] => t
) )
[1] => SimpleXMLElement Object
( [@attributes] =>
Array (
[scheme] => y2
[term] => Film
[label] => Film & Animation
) )
它以数字数组开头。
【问题讨论】:
-
tanx ,我看到了那些,但它对我不起作用,它有 2 个昏暗的阵列......真的很困惑:|