library/Haste/Util/Arrays.php
public static function array_unique_keys($array)
    {
        $arrResult = [];

        foreach (array_unique(array_keys($array)) as $varKey)
        {
            $arrResult[$varKey] = $array[$varKey];
        }

        return $arrResult;
    }
public static function array_unique_keys($array)
    {
        $arrResult = [];

        foreach (array_unique(array_keys($array)) as $varKey)
        {
            $arrResult[$varKey] = $array[$varKey];
        }

        return $arrResult;
    }
public static function array_unique_keys ( $ array ) { $ arrResult = [ ] ; foreach ( array_unique ( array_keys ( $ array ) ) as $ varKey ) { $ arrResult [ $ varKey ] = $ array [ $ varKey ] ; } return $ arrResult ; }
Uniques an array by key, not by value
Uniques an array by key not by value