note 78178 deleted from function.array-unique by danbrown

From: Date: Sun, 23 Jan 2011 17:21:27 +0000
Subject: note 78178 deleted from function.array-unique by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176187@lists.php.net to get a copy of this message
Note Submitter: mew at world dot end dot org ---- Smaller version for PHP5 <?php # array array_unique_save (array array [, bool preserve_keys] ) function array_unique_save ($a, $pk = true) { $a = array_diff_key($a, array_unique($a)); return ($pk ? $a : array_values($a)); } ?>

« previous php.notes (#176187) next »