How would I merge/combine ARRAY1 and ARRAY2 so that the results are like ARRAY3?
I appreciate any help.
ARRAY1
array (size=3)
0 =>
array (size=2)
0 => string ‘store1’ (length=6)
1 => string ‘product1’ (length=8)
1 =>
array (size=2)
0 => string ‘store2’ (length=6)
1 => string ‘product2’ (length=8)
2 =>
array (size=2)
0 => string ‘store3’ (length=6)
1 => string ‘product3’ (length=8)
ARRAY2
array (size=3)
0 =>
array (size=1)
‘status’ => string ‘Yes’ (length=3)
1 =>
array (size=1)
‘status’ => string ‘No’ (length=2)
2 =>
array (size=1)
‘status’ => string ‘No’ (length=2)
ARRAY3
array (size=3)
0 =>
array (size=3)
0 => string ‘store1’ (length=6)
1 => string ‘product1’ (length=8)
2 =>
array (size=1)
‘status’ => string ‘Yes’ (length=3)
1 =>
array (size=3)
0 => string ‘store2’ (length=6)
1 => string ‘product2’ (length=8)
2 =>
array (size=1)
‘status’ => string ‘No’ (length=2)
2 =>
array (size=3)
0 => string ‘store3’ (length=6)
1 => string ‘product3’ (length=8)
2 =>
array (size=1)
‘status’ => string ‘No’ (length=2)