I have two arrays. One has group names the other one has group items. I want to assign group names as keys to the second array.
Example:
$array1 = array(
0 => "A",
1 => "B"
);
$array2 = array(
0 => "a,b,c,d",
1 => "e,f,g,h"
);
The second array should become:
$array3 = array(
A => "a,b,c,d",
B => "e,f,g,h"
);
How can i achieve this in PHP?
Thanks