$a1=["red","green"];
$a2=["blue","yellow"];
print_r(array_merge($a1,$a2));
Merge two associative arrays into one array:
$a3=["a"=>"red","b"=>"green"];
$a4=["c"=>"blue","b"=>"yellow"];
print_r(array_merge($a3,$a4));
Using only one array parameter with integer keys:
$a=array(3=>"red",4=>"green");
print_r(array_merge($a));