public static function filter(...$ruts)
    {
        if (is_array($ruts[0]) && func_num_args() === 1) {
            $ruts = $ruts[0];
        }

        return array_filter($ruts, function ($rut) {
            return self::validate($rut);
        });
    }
public static function filter(...$ruts)
    {
        if (is_array($ruts[0]) && func_num_args() === 1) {
            $ruts = $ruts[0];
        }

        return array_filter($ruts, function ($rut) {
            return self::validate($rut);
        });
    }
public static function filter ( ... $ ruts ) { if ( is_array ( $ ruts [ 0 ] ) && func_num_args ( ) === 1 ) { $ ruts = $ ruts [ 0 ] ; } return array_filter ( $ ruts , function ( $ rut ) { return self :: validate ( $ rut ) ; } ) ; }
Filter a given array of RUTs for the correct ones.

@param mixed ...$ruts
@return array
Filter a given array of RUTs for the correct ones .