2012-04-16 122 views

回答

4

你试过:

(string) $var[0] 

?通常情况下,你使用字符串强制转换来将SimpleXMLElements转换为XML nodeValue。

0

这应该获得的价值:

echo $myXMLElement->{'0'};