I have 2 array in php (I use echo json\_encode()) to show u the output :

echo json\_encode($arr);

```
[{'a':1}]

```

and echo json\_encode($arr2);

```
[{'something':1},{'something2':2}]

```

When I do $arr[] = $arr2; it output this

```
[{'a':1}[{'something':1},{'something2':2}]]

```

what I want is

```
[{'a':1},{'something':1},{'something2':2}]

```