HI all
I am obtaining an XML string using:
$xml = simplexml_load_string($response);
When I want to view the value of part of the XML file I use:
echo $xml->message;
This works fine however if I try to assign the values to my array, and then view my array structure, it looks like this:
Array
(
[Status] => OK
[StatusDetail] => SimpleXMLElement Object
(
[0] => [ test system ] Authorised 142403
)
[VPSTxId] =>
[SecurityKey] =>
[AccountNo] => SimpleXMLElement Object
(
[0] => 142403
)
[PersonName] => SimpleXMLElement Object
(
[0] => Jo Bloggs
)
[3DSecureStatus] =>
)
How can I get the Key/Value pairs to not include the reference to SimpleXMLElementObject?
So ultimatley my array would look like:
Array
(
[Status] => OK
[StatusDetail] => [ test system ] Authorised 142403
[VPSTxId] =>
[SecurityKey] =>
[AccountNo] => 142403
[PersonName] => Jo Bloggs
[3DSecureStatus] =>
)
Thanks for reading.
kbc