Home >Backend Development >PHP Tutorial >数据合并问题,急,在线等

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

WBOY
WBOYOriginal
2016-06-23 14:19:53821browse

$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."<br/>";   }   return $aaaa;}echo csarray($str);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn