我有这个
<?php
if(isset($_GET['datos'])){
$xd = $_GET['datos'];
$datosCompletos = explode(',', $xd);
$longArreglo = count($datosCompletos);
for ($i=0; $i < $longArreglo; $i++) {
$arregloInformacion = explode('|', $datosCompletos[$i]);
$longInformacion = count($arregloInformacion);
$dato = "dato".$i;
for ($u=0; $u < $longInformacion; $u++) {
$dato[$u] = $arregloInformacion[$u];
echo $dato[$u];
}
}
}
?>
这是我发送的数据 Sria.plan|Fnzas|139|Lopez%20Portillo%20Alcantara%20Jorge%20Ernesto|29|2013-05-01|0000188B|T|Titular|1984-03-19|2011-07-16| H|341.45|6305|276|153|673.4|7407.4|1185.18|8592.58|8674.75,Sria.plan.fnzas|Tesoreria|1538|Rodriguez%20Guzman%20Noemi|58|2011-05-01|0000188A|T|Titular| 1998-12-16|1994-07-09|M|1083.78|20841|276|153|2127|23397|3743.52|27140.5|27222.7,Sria.plan.fnzas|Tesoreria|1500|Martinez%20Rodriguez%20Edith|23| 2013-05-01|0000188C|B|Hija|1989-07-25|2006-04-16|M|438.62|8208|276|153|863.7|9500.7|1520.11|11020.8|11103
我需要进去
$dato0[0] = Sria.plan
$dato0[1] = Fnzas
$dato0[2] = 139
$dato0[3] = ... //etc
$dato1[0] = Sria.plan.fnzas
$dato1[1] = Tesoreria
$dato1[2] = 1538
$dato1[3] = ... //etc
$dato2[0] = Sria.plan.fnzas
$dato2[1] = Tesoreria
$dato2[2] = 1500
$dato2[3] = ... //etc
但是通过这段代码,我得到了这个:SF1L220TT12H362167188ST1R520TT11M122122322ST1M220BH12M482189111
为什么?!