fork download
  1. <?php
  2.  
  3. $var = array("laranja", "morango");
  4.  
  5. array_push($var, "banana");
  6. array_push($var, "uva");
  7. array_push($var,"cereja");
  8.  
  9.  
  10. $var = array_unique($var);
  11.  
  12.  
  13. for($i = 0; $i <= count($var); $i++){
  14. echo $i."\n";
  15. }
Success #stdin #stdout 0.01s 82560KB
stdin
Standard input is empty
stdout
0
1
2
3
4
5