Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $max_nb = max($liste);
  2. $min_nb = min($liste);
  3.  
  4. $max = 0;
  5. $nb_max = 0;
  6.  
  7. $array_count = array_count_values($liste);
  8. var_dump($array_count);
  9. echo '<br>'.$min_nb.'<br>'.$max_nb;
  10. for ($i = $min_nb; $i < $max_nb; $i++)
  11. {
  12. echo '<br>'.$i;
  13. $result = $array_count($i);
  14.  
  15. echo $result;
  16.  
  17. if ($array_count($i) > $max)
  18. {
  19. $max = $array_count($i);
  20. $nb_max = $i;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement