I have 2 arrays:

```
$im=explode(",", $data['products']);
$imi=explode(",", $data['period']);

```

which are associated: 

```
$data['products'] = balon,globo,sesta
$data['period'] = 1,1,2

```

so when I merge the result it is:

```
Array ( [0] => DS Basic [1] => DS Pro [2] => DS Start [3] => 1 [4] => 1 [5] => 2 )

```

The problem is that I need it to be associated like this:

```
DS Basic = 1 , DS Pro = 1 , DS Start = 2

```

I'm using `array_merge($im,$imi)`

How can I do this using `foreach`?
I would like this:

```
Array ( [0] => DS Basic [1] => DS Pro [2] => DS Start)
Array ( [0] => 1 [1] => 1 [2] => 2 )

```

So when I use it it can be like 

```
using foreach

DS basic has a period of 1

DS pro has a period of 1

DS start has a period of 2

```