Codice PHP:

//al posto di $my_array metti il nome dell'array

$indici_max = array();
$max = -1

//trovo il massimo  

foreach( $my_array as $k => ) if($v $max$max $v;

//creo un array che contiene le chiavi in cui il valore è uguale al valore del massimo   
echo "posizione massimi: 
"
;
foreach ( 
$my_array as $k=>){    
      if( 
$v == $max ) {
         
$a_max[] = $k;        
         echo 
"- $k ;
"
;    
      }