How can I remove duplicate values from an array in PHP?
$a = array(1, 2, 3, 4); $b = array(1, 6, 5, 2, 9); $c = array_merge($a, $b); $unique = array_keys(array_flip($c)); print_r($unique);