note 25428 added to function.array-unique

From: Date: Mon, 23 Sep 2002 15:04:40 +0000
Subject: note 25428 added to function.array-unique
Groups: php.notes 
Request: Send a blank email to php-notes+get-37151@lists.php.net to get a copy of this message
Before I found the mysql distinct I had to make a nicer array from the keys/values that I got from array_unique so. $groups=array_unique($groups); $newgroup[0]=reset($groups); for ($x=1;$x<sizeof($groups);$x++) { $newgroup[$x]=next($groups); } -- http://www.php.net/manual/en/function.array-unique.php http://master.php.net/manage/user-notes.php?action=edit+25428 http://master.php.net/manage/user-notes.php?action=delete+25428 http://master.php.net/manage/user-notes.php?action=reject+25428

« previous php.notes (#37151) next »