src/Util/Arr.php
public static function mode($arr)
    {
        $vals = array_count_values($arr);
        asort($vals);
        return end(array_keys($vals));
    }
public static function mode($arr)
    {
        $vals = array_count_values($arr);
        asort($vals);
        return end(array_keys($vals));
    }
public static function mode ( $ arr ) { $ vals = array_count_values ( $ arr ) ; asort ( $ vals ) ; return end ( array_keys ( $ vals ) ) ; }
Get the mode
@param array $arr
@return mixed
Get the mode