fork(3) download
  1. <?php
  2. $array1 = array("a"=>"Red","b"=>"Blue","c"=>"Pink");
  3. $array2 = array("d"=>"Green","a"=>"Brown","e"=>"Saphoron");
  4.  
  5. print_r(array_merge($array1,$array2));
  6. ?>
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Array
(
    [a] => Brown
    [b] => Blue
    [c] => Pink
    [d] => Green
    [e] => Saphoron
)