fork(2) download
  1. <?php
  2.  
  3. $array = array(10, 30, 10, 40, 40);
  4. $copia = array_unique($array);
  5. if(count($copia) != count($array)) {
  6. echo "existem valores duplicados";
  7. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
existem valores duplicados