> > Couldn't you just do
> > arsort($chance);
> > $lastItem = chance[( count( $chance ) - 1 )];
> $lastItem = end( $chance );

end() returns the value as well.  You would also need to use key().

thnx,
Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to