I have 5 arrays like this
print_r($_POST['ponumber']);
print_r($_POST['man_part_number']);
print_r($_POST['model']);
print_r($_POST['damaged']);
print_r($_POST['serial_number']);
print_r($_POST['skid']);
which produces
Array
(
[0] => 111111
[1] => 111111
[2] => 111111
[3] => 111111
)
Array
(
[0] => 11C2555
[1] => 11C2555
[2] => 11C2555
[3] => 11C2555
)
Array
(
[0] => FORMS PRINTER 2500 SERIES
[1] => FORMS PRINTER 2500 SERIES
[2] => FORMS PRINTER 2500 SERIES
[3] => FORMS PRINTER 2500 SERIES
)
Array
(
[0] => 0
[1] => 0
[2] => 0
[3] => 0
)
Array
(
[0] => CNCQ202070
[1] => CNCQ210800
[2] => MY5203B1KQ
[3] => CN1863Q0PQ
)
Array
(
[0] => 1
[1] => 1
[2] => 1
[3] => 1
)
I need to combine them based on keys so that I get 4 arrays total that look like this
Array
(
[0] => 111111
[1] => 11C2555
[2] => FORMS PRINTER 2500 SERIES
[3] => 0
[4] => CNCQ202070
)
and so on...
It needs to match each key in each array and combine them into one array. I was trying array_combine and array_merge but I don't think that was the right way to go. Anyone?