当前位置:Gxlcms > PHP教程 > 数据合并问题,急,在线等

数据合并问题,急,在线等

时间:2021-07-01 10:21:17 帮助过:3人阅读

$str =array (0 => 'D14FE97964E040D37491' ,
1 => '8863B0E43C1793FF954B11D8EE1420B6' ,
2 => 'D2E7A0B60BB6703465AC320092595B2F' ,
3 => '785E9B35B5460BE82758E08E642216BD' ,
4 => 'B0E324E1DBCD97C62783E328053F31FE');
function csarray($str){
foreach ((array)$str as $value) {
$aaaa[] += $value."\n";
}
return $aaaa;
}


echo csarray($str);

怎样输出如下:

D14FE97964E040D37491
8863B0E43C1793FF954B11D8EE1420B6
D2E7A0B60BB6703465AC320092595B2F
785E9B35B5460BE82758E08E642216BD
B0E324E1DBCD97C62783E328053F31FE


回复讨论(解决方案)

$str =array (0 => 'D14FE97964E040D37491' ,      1 => '8863B0E43C1793FF954B11D8EE1420B6' ,      2 => 'D2E7A0B60BB6703465AC320092595B2F' ,       3 => '785E9B35B5460BE82758E08E642216BD' ,      4 => 'B0E324E1DBCD97C62783E328053F31FE');function csarray($str){foreach ((array)$str as $value) {    $aaaa.= $value."
"; } return $aaaa;}echo csarray($str);

人气教程排行