Data merging problems,

Source: Internet
Author: User
Data merging problem, urgent, online, etc. $ str & nbsp; = array & nbsp; (0 & nbsp ;=& gt; & nbsp; 'd14fe97964e040d37491' & nbsp;, & nbsp; & nbsp; 1 & data merging problems, urgent, online, etc.
$ 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 );

The output is as follows:

D14FE97964E040D37491
8863B0E43C1793FF954B11D8EE1420B6
D2E7A0B60BB6703465AC320092595B2F
785E9B35B5460BE82758E08E642216BD
B0E324E1DBCD97C62783E328053F31FE share :? 'D14fe97964e040d37491 '?,?????? 1? =>? '8863b0e43c1793ff954b11d8ee1420b6... 'data-pics = ''>
------ Solution --------------------

$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);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.