1
This is the xml used to generate the array
<?xml version="1.0" encoding="utf-8"?>
<integracao>
<status>2</status>
<resposta>
<paginacao>
<totalItens>2</totalItens>
<paginaAtual>1</paginaAtual>
<registrosPorPagina>10</registrosPorPagina>
<ultimaPagina>1</ultimaPagina>
</paginacao>
<historico>
<registro>
<transacao>19569951</transacao>
<email></email>
<valor>2000</valor>
<dataEmissao>2014-09-02T12:09:14</dataEmissao>
<status>aguardando</status>
<codigoStatus>1</codigoStatus>
</registro>
<registro>
<transacao>19561474</transacao>
<email></email>
<valor>2000</valor>
<dataEmissao>2014-09-01T01:09:20</dataEmissao>
<status>aguardando</status>
<codigoStatus>1</codigoStatus>
</registro>
</historico>
</resposta>
</integracao>
Exit:
SimpleXMLElement Object
(
[status] => 2
[resposta] => SimpleXMLElement Object
(
[paginacao] => SimpleXMLElement Object
(
[totalItens] => 4
[paginaAtual] => 1
[registrosPorPagina] => 10
[ultimaPagina] => 1
)
[historico] => SimpleXMLElement Object
(
[registro] => Array
(
[0] => SimpleXMLElement Object
(
[transacao] => 19605633
[email] => [email protected]
[valor] => 500
[dataEmissao] => 2014-09-04T01:09:25
[status] => aguardando
[codigoStatus] => 1
)
[1] => SimpleXMLElement Object
(
[transacao] => 19605619
[email] => email_cliente
[valor] => 500
[dataEmissao] => 2014-09-04T01:09:14
[status] => cancelado
[codigoStatus] => 8
)
[2] => SimpleXMLElement Object
(
[transacao] => 19569951
[email] => SimpleXMLElement Object
(
)
[valor] => 2000
[dataEmissao] => 2014-09-02T12:09:14
[status] => aguardando
[codigoStatus] => 1
)
[3] => SimpleXMLElement Object
(
[transacao] => 19561474
[email] => SimpleXMLElement Object
(
)
[valor] => 2000
[dataEmissao] => 2014-09-01T01:09:20
[status] => aguardando
[codigoStatus] => 1
)
)
)
)
)
added the xml file in the post
– Alexandre Sousa
I kicked the syntax, but that’s right.
– Bruno Augusto
and how to use this second function?
– Alexandre Sousa
Ooops, missed it right? I’ll add, but it’s like any other function. ;)
– Bruno Augusto