<?php
$arr = array();
$arr["Intercambio"]["0"]["Versao"]["0"] = "2";
$arr["Intercambio"]["0"]["TipoIdentificacaoRemetente"]["0"] = "cnpj";
$arr["Intercambio"]["0"]["IdentificacaoRemetente"]["0"] = "02089969001420";
$arr["TextosCodificados"]["TextoCodificado"]["0"]["QualificadorAssunto"]["0"] = "ALL";
$arr["TextosCodificados"]["TextoCodificado"]["0"]["Texto"] = "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t";
$arr["TextosCodificados"]["TextoCodificado"]["1"]["QualificadorAssunto"]["0"] = "AAI";
$arr["TextosCodificados"]["TextoCodificado"]["1"]["Texto"] = "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W";
$arr["TextosCodificados"]["TextoCodificado"]["2"]["QualificadorAssunto"]["0"] = "IVN";
$arr["TextosCodificados"]["TextoCodificado"]["2"]["Texto"] = "Pedido Interno:0000283278 ID da Carga:";
function recursive_show_array($arr, $tmp = array())
{
foreach($arr as $k => $value)
{
if(is_array($value))
{
$tmp = recursive_show_array($value, $tmp);
}
else
{
$tmp[$k] = $value;
}
}
var_dump($tmp);
return $tmp;
}
$rst = recursive_show_array($arr);
//var_dump($rst);
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- array(1) {
[0]=>
string(1) "2"
}
array(1) {
[0]=>
string(4) "cnpj"
}
array(1) {
[0]=>
string(14) "02089969001420"
}
array(1) {
[0]=>
string(14) "02089969001420"
}
array(1) {
[0]=>
string(14) "02089969001420"
}
array(1) {
[0]=>
string(3) "ALL"
}
array(2) {
[0]=>
string(3) "ALL"
["Texto"]=>
string(50) "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t"
}
array(2) {
[0]=>
string(3) "AAI"
["Texto"]=>
string(50) "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t"
}
array(2) {
[0]=>
string(3) "AAI"
["Texto"]=>
string(51) "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(51) "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
array(1) {
[0]=>
string(1) "2"
}
array(1) {
[0]=>
string(4) "cnpj"
}
array(1) {
[0]=>
string(14) "02089969001420"
}
array(1) {
[0]=>
string(14) "02089969001420"
}
array(1) {
[0]=>
string(14) "02089969001420"
}
array(1) {
[0]=>
string(3) "ALL"
}
array(2) {
[0]=>
string(3) "ALL"
["Texto"]=>
string(50) "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t"
}
array(2) {
[0]=>
string(3) "AAI"
["Texto"]=>
string(50) "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t"
}
array(2) {
[0]=>
string(3) "AAI"
["Texto"]=>
string(51) "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(51) "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
array(2) {
[0]=>
string(3) "IVN"
["Texto"]=>
string(38) "Pedido Interno:0000283278 ID da Carga:"
}
preferences:
115.82 ms | 405 KiB | 173 Q