fork download
  1. <?php
  2.  
  3. $gols = array("Pequnion"=>"25","Minimion"=>"10","Zeron"=>"0","Grandon"=>"100","Outro Grandon"=>"100","Medion"=>"50");
  4.  
  5. echo max($gols);
  6.  
  7. echo PHP_EOL;
  8.  
  9. $maxs = array_keys($gols, max($gols));
  10.  
  11. print_r( $maxs);
  12.  
  13. echo PHP_EOL;
  14.  
  15. echo ($maxs[0]);
  16.  
  17. echo PHP_EOL;
  18.  
  19. echo ($maxs[1]);
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
100
Array
(
    [0] => Grandon
    [1] => Outro Grandon
)

Grandon
Outro Grandon