PHP hat eine ganze Reihe von Sortierfunktionen.
Das eine, das so klingt, wie Sie es wollen, ist asort()
Weitere Alternativen wie sort() finden Sie im PHP-Handbuch , ksort() , natsort() , usort() , und eine Reihe anderer Variationen. Es gibt auch shuffle() zufällig sortieren.
[EDIT]Okay, Schritt für Schritt, um den höchsten Wert aus dem Array zu bekommen:
asort($row); //or arsort() for reverse order, if you prefer.
end($row); //positions the array pointer to the last element.
print current($row); //prints "45" because it's the sorted highest value.
print key($row); //prints "c" because it's the key of the hightst sorted value.
Es gibt noch viele andere Möglichkeiten, dies zu tun.