Question: I have an array like this:

```
Array
(
    [0] => wahyu@email.co.id
    [1] => wahyu@email.co.id
)
Array
(
    [0] => wahyu@email.co.id
    [1] => wahyu@email.co.id
)

```

I would like to combine array above like this:

```
Array
(
    [0] => wahyu@email.co.id
    [1] => wahyu@email.co.id
    [2] => wahyu@email.co.id
    [3] => wahyu@email.co.id
)

```

How the way to combine it?

Answer: 
**array\_merge** function is used for the combine two array.

```
$a = array("0" => "one@email.co.id",
    "1" => "two@email.co.id"
);

$b = array(
    "0" => "three@email.co.id",
    "1" => "four@email.co.id"
);

$merged_array = array_merge($a,$b);

echo "<prE>";
print_r($merged_array);

```
=> Try `array_merge()` Function to merge two array.

```
<?php
$a1=array("wahyu@email.co.id","wahyu@email.co.id");
$a2=array("wahyu@email.co.id","wahyu@email.co.id");
print_r(array_merge($a1,$a2));
?>

```

Demo:-
<https://paiza.io/projects/5-7Cdo5GIMenayUP0cIDGg>