I have a SOAP request that is returning an array of IDs. For some reason, I am having trouble accessing the array within the SimpleXML element.
I did a vardump of the simplexml object:
die(var_dump($POList));
object(SimpleXMLElement)#7 (1) { ["int"]=> array(10) { [0]=> string(5) "20622" [1]=> string(5) "20868" [2]=> string(5) "20880" [3]=> string(5) "20883" [4]=> string(5) "21034" [5]=> string(5) "21065" [6]=> string(5) "21136" [7]=> string(5) "21160" [8]=> string(5) "21202" [9]=> string(5) "21247" } }
And then a var dump of what I though would be the array:
die(var_dump($POList->int));
object(SimpleXMLElement)#8 (1) { [0]=> string(5) "20622" }
How do I access this array?