php search the key off bigger value code example Example: php search the key off bigger value $key_of_max_value = array_search(max($arrCompare),$arrCompare);