krsort(array) then grab first key. -----Original Message----- From: Alex Elderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:47 AM To: [EMAIL PROTECTED] Subject: [PHP] get the greatest key of an array???
Hi, How can i get the greatest key of an array?? $array[1] = "..."; $array[5] = "..."; $array[0] = "..."; $array[10] = "..."; $array[7] = "..."; $greatest_key = ??? (this must be 10 in this example) Alex Elderson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php