I'm trying to merge two given Arrays into a new one:
First array:
Array
(
[0] =>; Array
(
[label] => Please Choose
[value] => default
)
)
Second Array:
Array
(
[label] => 14.09.2013 - 27.09.2013 - 3.299 €
[value] => 14.09.2013 - 27.09.2013
)
I want to generate an arrays which looks like this:
Array
(
[0] => Array
(
[label] => Please Choose
[value] => 14.09.2013 - 27.09.2013
),
[1] => Array
(
[label] => 14.09.2013 - 27.09.2013 - 3.299 €
[value] => 14.09.2013 - 27.09.2013
)
)
I tried to merge the arrays:
array_merge($array1,$array2);
Which results in:
Array
(
[0] => Array
(
[label] => Please Choose
[value] => default
)
[label] => 14.09.2013 - 27.09.2013 - 3.299 €
[value] => 14.09.2013 - 27.09.2013
)
What is the appropriate function for this use-case?