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
holds the largest value, is this possable, and if so how?
Regards, David

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to