欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

duquxml,该怎么处理

程序员文章站 2022-05-18 13:54:33
...
duquxml







有人会用php读去这种xml文件吗?

帮帮忙
------解决思路----------------------
$s =



TXT;

$x = simplexml_load_string("$s");
print_r($x);
SimpleXMLElement Object
(
[row] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => TR
[ID] => 07A72498325C0B0DE050C7707961FCF8
[agentCode] => 253001001001001
[transferId] => C81_AGIN3439952663804
[tradeNo] => 141112789497906
[platformType] => AGIN
[playerName] => C81AGIN79514
[transferType] => IN
[transferAmount] => 100
[previousAmount] => 0
[currentAmount] => 100
[currency] => CNY
[exchangeRate] => 1
[IP] => 0
[flag] => 0
[creationTime] => 2014-11-12 06:08:12
[gameCode] =>
)

)

[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => TR
[ID] => 07A75AD0A35E1114E050C7707961FF13
[agentCode] => 253001001001001
[transferId] => C81_AGIN3439952663804
[tradeNo] => 141112789497906
[platformType] => AGIN
[playerName] => C81AGIN79514
[transferType] => IN
[transferAmount] => 100
[previousAmount] => 0
[currentAmount] => 100
[currency] => CNY
[exchangeRate] => 1
[IP] => 0
[flag] => 0
[creationTime] => 2014-11-12 06:08:12
[gameCode] =>
)

)

[2] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => TR
[ID] => 07A72498325D0B0DE050C7707961FCF8
[agentCode] => 253001001001001
[transferId] => C81_AGIN3439952663804
[tradeNo] => 141112789497906
[platformType] => AGIN
[playerName] => C81AGIN79514
[transferType] => IN
[transferAmount] => 100
[previousAmount] => 0
[currentAmount] => 100
[currency] => CNY
[exchangeRate] => 1
[IP] => 0
[flag] => 0
[creationTime] => 2014-11-12 06:08:12
[gameCode] =>
)

)

[3] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => TR
[ID] => 07A75AD0A3921114E050C7707961FF13
[agentCode] => 253001001001001
[transferId] => C81_AGIN3439952663804
[tradeNo] => 141112789497906
[platformType] => AGIN
[playerName] => C81AGIN79514
[transferType] => IN
[transferAmount] => 100
[previousAmount] => 0
[currentAmount] => 100
[currency] => CNY
[exchangeRate] => 1
[IP] => 0
[flag] => 0
[creationTime] => 2014-11-12 06:08:12
[gameCode] =>
)

)

)

)

duquxml,该怎么处理

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频