Einzelnen Beitrag anzeigen
  #4  
Alt 12.03.2004, 19:01:51
Marilu Marilu ist offline
Member
 
Registriert seit: Apr 2003
Ort: 49.54, 8.35 - 3./9
Beiträge: 878
Array_unique ist ziemlich buggy, dieses Problem hatte ich auch mal. Ich hab's so gelöst:

PHP-Code:
function my_array_unique($old){ 
    
$new = array(); 
    for(
$i=0;$i<count($old);++$i){ 
        if(
in_array($old[$i], $new) != "true"){ 
            
$new[] = $old[$i]; 
        } 
    } 
    return 
$new

Mit Zitat antworten