I dont want to merge or intersect or diff I just want to get both values from both arrays with matching keys regardless of values matching or not.
example data
array1 ( 0 => 'a', 1 => 'b' )
array2 ( 0 => 'a', 1 => 'c' )
foreach
echo "Key: ".$key." Value1: ".$v1." Value2: ".$v2."";
I would like this as the output
Key: 0 Value1: a Value2: a
Key: 1 Value1: b Value2: c