A good way to make a living as a new array

Source: Internet
Author: User
A good way to survive into a new array
Rt. How to combine 2 identical arrays into a new array. The array following the Array_merge will overwrite the previous.
The array structure is

I guess that's what you mean.

$a = Array (' a ' = = 1);
$b = Array (' a ' = = 1);

Print_r (array_merge_recursive ($a, $b));
[a] = = Array
[0] = 1
[1] = 1


PHP code?123456789101112131415 with array_merge_recursive. Then $arr = Array (); $count = count ($data [' id ']); for ($i =0; $i < $count; $i + +) {$arr [] = Array (' I
Sister paper you are like a wonderful flower trembling in the wind ...
  • Related Article

    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.