2012-04-16 121 views

回答

4

你試過:

(string) $var[0] 

?通常情況下,你使用字符串強制轉換來將SimpleXMLElements轉換爲XML nodeValue。

0

這應該獲得的價值:

echo $myXMLElement->{'0'};