note 25428 deleted from function.array-unique by sobak
| From: | sobak@php.net | Date: | Sun, 11 Dec 2016 06:53:23 +0000 |
| Subject: | note 25428 deleted from function.array-unique by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208482@lists.php.net to get a copy of this message | ||
Note Submitter: deigo at swirve dot NOSPAM dot com
----
Before I found the mysql distinct I had to make a nicer array from the keys/values that I got from
array_unique so.
<?php
$groups=array_unique($groups);
$newgroup[0]=reset($groups);
for ($x=1;$x<sizeof($groups);$x++)
{
$newgroup[$x]=next($groups);
}
?>