Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/06/2006, 10:19
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
hmmm podrias probar esto:
Código PHP:
function top3_repetidos$array ) {
    
$contador = array();
    foreach( 
$array as $item ) {
        if( isset( 
$contador[$item] ) ) {
            
$contador[$item]++;
        } else {
            
$contador[$item] = 1;
        }    
    }
    
    
$top3 array_sliceasort$contadorSORT_NUMERIC ), 0);
    
    return 
array_keys$top3 );