I'm using `array_push` to add elements to the array in a specific `key` position, check my code:

```
foreach($query as $key)
{
    $appointment['id_services'] = array_push($appointment,$key['id_services']);
}

print_r($appointment['id_services']);

```

Now `$query` contains in my case two array, I iterate through `$query` variable and take the two `id_services` the values returned is: `14` and `13`. Anyway, when I print the `appointment['id_services]` array index I get: `16`, but why? It should create another array in `appointment['id_services]` with this structure:

```
[0] => 14
[1] => 13

```

I need to push the element not overwrite it.

What am I doing wrong?