$ebs_status_response_xml = new SimpleXMLElement($result);
print_r($ebs_status_response_xml);
然后回复如下。
SimpleXMLElement Object (
[@attributes] => Array
( [transactionId] => 55113838
[paymentId] => 22239729
[amount] => 499
[dateTime] => 2014-01-09 13:03:18
[mode] => LIVE
[referenceNo] => 100014102
[transactionType] => Authorized
[status] => Processed [isFlagged] => NO )
)
以上就是回应。那么我将如何从这个???
获得transationId值答案 0 :(得分:2)
使用它。因为它只是一个属性
$ebs_status_response_xml['transactionId']