0
I have the following array:
Array
(
[0] => Array
(
[chamado_codigo] => 5
[representante_id] => 1
[data] => 2015-10-08
[razaoSocial] => mineoro
[cliente_cidade] => chapeco
[tecnico_nome] => jacomasio
)
[1] => Array
(
[chamado_codigo] => 6
[representante_id] => 2
[data] => 2015-10-08
[razaoSocial] => mineoro
[cliente_cidade] => chapeco
[tecnico_nome] => Eduardo
)
)
I want to join the array below with the above:
Array
(
[0] => Array
(
[valor] => R$ 0,45
)
[1] => Array
(
[valor] => R$ 0,50
)
)
I mean, I want to leave it at that, is it possible? How do I do?
Array
(
[0] => Array
(
[chamado_codigo] => 5
[representante_id] => 1
[data] => 2015-10-08
[razaoSocial] => mineoro
[cliente_cidade] => chapeco
[tecnico_nome] => jacomasio
[valor] => R$ 0,45
)
[1] => Array
(
[chamado_codigo] => 6
[representante_id] => 2
[data] => 2015-10-08
[razaoSocial] => mineoro
[cliente_cidade] => chapeco
[tecnico_nome] => Eduardo
[valor] => R$ 0,50
)
)
have tried with
array_merge()
? http://www.w3schools.com/php/func_array_merge.asp– Ivan Ferrer