rsort($array);
$nextNum = $array[0] + 1;

You may have to include the numerical flag, but I don't think so.
--
phill

"Mike Potter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
>   For example:
> Given this array :            return this:
>
> (0, 0)                        1
> (1,0)                        2
> (1,2,0)                    3
> (3,0)                        1
> (1, 3)                        2
>
> Does anyone have any code, or any hints on how to go about this?  I've
> worked on it for a few hours, and am really stuck.
> Thanks,
> Mike
>
> Mike Potter
> OEone Corp.
> http://www.oeone.com
>
>
>
> --
> 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]
>



-- 
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]

Reply via email to