Array_combine remove duplicate array
<?php
$a1=array("red","red");
$a2=array("blue","yellow");
print_r(array_combine($a1,$a2));
?>
This code give output : Array ( [red] => yellow )
But I want output like this: Array ( [red] => blue [red] => yellow )
echo $arr['red'];what do you expect it to output? Blue or yellow? You can't have two keys that is the same.