This will output:
?php $input = array ("a "= "vert", "rouge", "b" = "vert", "bleu", "rouge"); $result = array_unique ($input); print_r($result); / / Cela va afficher: / /Array / / (/ / [a] = vert / / [0] = rouge / / [1] = bleu / /)?