public static function is_valid(array $data, array $validators) {
        $gump = self::get_instance();

        $gump->validation_rules($validators);

        if ($gump->run($data) === false) {
            return $gump->get_errors_array(false);
        } else {
            return true;
        }
    }
public static function is_valid(array $data, array $validators) {
        $gump = self::get_instance();

        $gump->validation_rules($validators);

        if ($gump->run($data) === false) {
            return $gump->get_errors_array(false);
        } else {
            return true;
        }
    }
public static function is_valid ( array $ data , array $ validators ) { $ gump = self :: get_instance ( ) ; $ gump -> validation_rules ( $ validators ) ; if ( $ gump -> run ( $ data ) === false ) { return $ gump -> get_errors_array ( false ) ; } else { return true ; } }
Validates by rules

@param array $data
@param array $validators
@return mixed
Validates by rules