RE: [PHP] How to get a unique series of numbers?
| From: | Jay Blanchard | Date: | Fri, 20 Aug 2004 12:50:51 +0000 |
| Subject: | RE: [PHP] How to get a unique series of numbers? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194322@lists.php.net to get a copy of this message | ||
[snip]
How would you do?
[/snip]
I would take each number and place it in an array. Then for each
subsequent number I would test to see if in_array()...if not add the
number to the array, if it is then do the calc again...