public static function unique($array)
    {
        $results = [];
        if (self::isMulti($array)) {
            $array = self::multiToAssoc($array);
            foreach ($array as $key => $value) {
                $results[] = $value;
            }

            return array_unique($array);
        }

        return array_unique($array);
    }
public static function unique($array)
    {
        $results = [];
        if (self::isMulti($array)) {
            $array = self::multiToAssoc($array);
            foreach ($array as $key => $value) {
                $results[] = $value;
            }

            return array_unique($array);
        }

        return array_unique($array);
    }
public static function unique ( $ array ) { $ results = [ ] ; if ( self :: isMulti ( $ array ) ) { $ array = self :: multiToAssoc ( $ array ) ; foreach ( $ array as $ key => $ value ) { $ results [ ] = $ value ; } return array_unique ( $ array ) ; } return array_unique ( $ array ) ; }
Get the unique elements from array.

@param array $array Array ot evaulated

@since 3.0.0

@return array
Get the unique elements from array .