PHP and Array: duplicate value
Written by Administrator   
venerd́, 05 febbraio 2010

Here below a simple example to avoid duplicate value in a PHP Array using the array_unique PHP function.

$values = array(1,2,4,5,2,3,3,6);
$uniq_values = array_unique($values);

print_r($uniq_values);