note 17468 deleted from function.array-unique by irc-html

From: Date: Sat, 19 Jan 2002 21:16:22 +0000
Subject: note 17468 deleted from function.array-unique by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25485@lists.php.net to get a copy of this message
My function that equals the broken array_unique(): function my_unique_array($array){ if(!is_array($array)){ return false; } foreach($array as $key => $value){ $tmp_array[$value] = ""; } foreach($tmp_array as $key => $value){ $new_array[] = $key; } return $new_array; }

« previous php.notes (#25485) next »