public static function uniqueFlat($array)
    {
        $uniqs = [];
        $res = [];
        foreach ($array as $k => $v) {
            $uv = var_export($v, true);
            if (array_key_exists($uv, $uniqs)) {
                continue;
            }
            $uniqs[$uv] = 1;
            $res[$k] = $v;
        }

        return $res;
    }
public static function uniqueFlat($array)
    {
        $uniqs = [];
        $res = [];
        foreach ($array as $k => $v) {
            $uv = var_export($v, true);
            if (array_key_exists($uv, $uniqs)) {
                continue;
            }
            $uniqs[$uv] = 1;
            $res[$k] = $v;
        }

        return $res;
    }
public static function uniqueFlat ( $ array ) { $ uniqs = [ ] ; $ res = [ ] ; foreach ( $ array as $ k => $ v ) { $ uv = var_export ( $ v , true ) ; if ( array_key_exists ( $ uv , $ uniqs ) ) { continue ; } $ uniqs [ $ uv ] = 1 ; $ res [ $ k ] = $ v ; } return $ res ; }
Non-recursively removes duplicate values from non-associative arrays.
Non - recursively removes duplicate values from non - associative arrays .