Mailinglisten-Archive |
Thomas Beckmann wrote:
> function array_unique($org)
> {
> if (function_exists('array_unique')) return array_unique($org);
>
> foreach ($org as $key=>$val) $tmp[$val]=$key;
> foreach($tmp as $val=>$key) $new[$key]=$val;
> return $org;
> }
hm, sollte es nicht "return $new;" sein statt "return $org;"?
--
Hartmut Holzgraefe hartmut_(at)_six.de http://www.six.de +49-711-99091-77
php::bar PHP Wiki - Listenarchive