Suppose, I have an array
$array1 = array(10, 20);
and another array of same values as above
$array2 = array(10, 20);
I want to combine these two arrays and generate an array with unique key and value pair. I want $array3 output to be like this:
$array3 = array(10 => 20, 20 => 10)
I tried shuffling the second array ($array2), sometimes it gives me the same values as first one($array1). And my $array3 output is:
$array3 = array(10 => 10, 20 => 20)
10 => 20, 20 => 10?