You could sort the values (ascending or descending), and select the first or last value (depending on how you sorted it).

DavÝ­ Írn Jˇhannsson wrote:
I have a array called $arr[], it holds integer values, I donĺt know how
many indexes it holds and I need to be able to find out what the hash
($arr[index])
holds the largest value, is this possable, and if so how?
Regards, David


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

Reply via email to