Question: I have 2 arrays like so:

```
$array1 = array(
    array("foo"=>"bar","count"=>"3"),
    array("foo2"=>"bar2","count"=>"4"),
    array("foo3"=>"bar3","count"=>"2")
);

$array2 = array(
    array("foo4"=>"bar","count"=>"3"),
    array("foo5"=>"bar2","count"=>"4"),
    array("foo6"=>"bar3","count"=>"2")
);

```

how can i add the 3rd element of array2 into array1 so it can become like this:

```
$array1 = array(
    array("foo"=>"bar","count"=>"3"),
    array("foo2"=>"bar2","count"=>"4"),
    array("foo3"=>"bar3","count"=>"2"),
    array("foo6"=>"bar3","count"=>"2")
);

```

i have tried doing `$array1 += $array2[2];` but it doesn't work. it just adds the keys from `array("foo6"=>"bar3","count"=>"2")` to array1 instead of adding it as an array in `$array1`

Could you help me out?

Answer: 
If you want the exact 3rd item, then you could do something like:

```
$array1[] = $array2[2];

```

If you want the last item of the array, you can use:

```
$array1[] = $array2[count($array2)];

```
try this

```
$array1[] = $array2[2];

```