pseudo code:
for($i=-1; $i < count($my_array); $i++) {
if (!in_array($i,$my_array)){echo $i; exit;}
}
should do it.....
____________________________
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: Mike Potter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 9:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Returning Lowest Number Not In Array
Hi all:
I'm hoping someone can help me out with this array problem. I'm
trying to find the lowest number which is not in the array.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]