codice:function duplicati($array, $valore) { $n = 0; for ($x = 0; $x < count($array); $x++) { if ($array[$x] == $valore) { $n++; } } if ($n > 1) { return TRUE; } else { return FALSE; } }
codice:function duplicati($array, $valore) { $n = 0; for ($x = 0; $x < count($array); $x++) { if ($array[$x] == $valore) { $n++; } } if ($n > 1) { return TRUE; } else { return FALSE; } }