php parse array excluding specific keys code example
Example 1: php search the key off bigger value
$key_of_max_value = array_search(max($arrCompare),$arrCompare);
Example 2: get key by value array php
<?php
$array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red');
$key = array_search('green', $array); // $key = 2;
$key = array_search('red', $array); // $key = 1;
?>