Extract data from an XML object
问题 How do I extract the data from that XML object, which is a value of a certain array: Array ( [Title] => SimpleXMLElement Object ( [0] => The Key of Life; A Metaphysical Investigation ) [ASIN] => SimpleXMLElement Object ( [0] => 0982385099 ) ... ) I did a foreach of the array like: foreach ($ArrayName as $FieldLabel => $FieldValue) { $Variable = $FieldValue[0].... } ...but still, it gets the whole XML object as the field value. I wanted it to extract the value only not the whole object. 回答1: