Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IbanValidator.php

function IbanValidator::bigModulo97

1 call to IbanValidator::bigModulo97()
IbanValidator::validate in vendor/symfony/validator/Constraints/IbanValidator.php
Checks if the passed value is valid.

File

vendor/symfony/validator/Constraints/IbanValidator.php, line 287

Class

IbanValidator
@author Manuel Reinhard <manu@sprain.ch> @author Michael Schummel @author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Constraints

Code

private static function bigModulo97(string $bigInt) : int {
    $parts = str_split($bigInt, 7);
    $rest = 0;
    foreach ($parts as $part) {
        $rest = ($rest . $part) % 97;
    }
    return $rest;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal