oppure:
codice:
$temp=array(1,1,2,3,4,5,6);
if (count($temp) != count(array_unique($temp)))
	echo "ALCUNI ELEMENTI SONO DUPLICATI";