php multidimensional array check if value exists over all subarray code example
Example: php search the key off bigger value
$key_of_max_value = array_search(max($arrCompare),$arrCompare);
$key_of_max_value = array_search(max($arrCompare),$arrCompare);