I need unique max number
| From: | Pieter from SA | Date: | Wed, 18 Aug 2004 08:05:05 +0000 |
| Subject: | I need unique max number | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194126@lists.php.net to get a copy of this message | ||
Hi all
I have data in one field in a database, all is numbers that can be
duplicated.
200, 200, 100, 50, 30.
i need to get all data from this field, terminate the duplicates and get the
max nuber that is not a duplicate, in the numbers above that would be 100.
I had a look at array_unique, but i'm not sure if this is the right function
for this.
Thanks in advance.