Please answer this simple SPAM challenge: max(seven, one)? (Example: nine)
Needed to get the index of the max/highest value in an assoc array.max() only returned the value, no index, so I did this instead.<?phpreset($x); // optional.arsort($x);$key_of_max = key($x); // returns the index.?>
<< Back to user notes page