Ver originalforeach($POST as $i= $vi){ foreach($POST as $j= $vj){ if($i != $j){ if($vi == $vj) echo "existe un valor repetido"; } } }