Da es die Funktion array-unique() erst ab PHP 4.0.1 gibt, muss man sich in PHP3 wie folgt behelfen:
function array_unique($a) { while (list($k, $v) = each($a)) $b[$v] = ""; while (list($k, $v) = each($b)) $c[] = $k; return $c; }
Da es die Funktion array-unique() erst ab PHP 4.0.1 gibt, muss man sich in PHP3 wie folgt behelfen:
function array_unique($a) { while (list($k, $v) = each($a)) $b[$v] = ""; while (list($k, $v) = each($b)) $c[] = $k; return $c; }