original_string: public static function iban($check)
      {
          if (!preg_match('/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/', $check)) {
              return false;
          }
  
          $country = substr($check, 0, 2);
          $checkInt = intval(substr($check, 2, 2));
          $account = substr($check, 4);
          $search = range('A', 'Z');
          $replace = [];
          foreach (range(10, 35) as $tmp) {
              $replace[] = strval($tmp);
          }
          $numStr = str_replace($search, $replace, $account . $country . '00');
          $checksum = intval(substr($numStr, 0, 1));
          $numStrLength = strlen($numStr);
          for ($pos = 1; $pos < $numStrLength; $pos++) {
              $checksum *= 10;
              $checksum += intval(substr($numStr, $pos, 1));
              $checksum %= 97;
          }
  
          return ((98 - $checksum) === $checkInt);
      }
code: public static function iban($check)
      {
          if (!preg_match('/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/', $check)) {
              return false;
          }
  
          $country = substr($check, 0, 2);
          $checkInt = intval(substr($check, 2, 2));
          $account = substr($check, 4);
          $search = range('A', 'Z');
          $replace = [];
          foreach (range(10, 35) as $tmp) {
              $replace[] = strval($tmp);
          }
          $numStr = str_replace($search, $replace, $account . $country . '00');
          $checksum = intval(substr($numStr, 0, 1));
          $numStrLength = strlen($numStr);
          for ($pos = 1; $pos < $numStrLength; $pos++) {
              $checksum *= 10;
              $checksum += intval(substr($numStr, $pos, 1));
              $checksum %= 97;
          }
  
          return ((98 - $checksum) === $checkInt);
      }
code_tokens: public static function iban ( $ check ) { if ( ! preg_match ( '/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/' , $ check ) ) { return false ; } $ country = substr ( $ check , 0 , 2 ) ; $ checkInt = intval ( substr ( $ check , 2 , 2 ) ) ; $ account = substr ( $ check , 4 ) ; $ search = range ( 'A' , 'Z' ) ; $ replace = [ ] ; foreach ( range ( 10 , 35 ) as $ tmp ) { $ replace [ ] = strval ( $ tmp ) ; } $ numStr = str_replace ( $ search , $ replace , $ account . $ country . '00' ) ; $ checksum = intval ( substr ( $ numStr , 0 , 1 ) ) ; $ numStrLength = strlen ( $ numStr ) ; for ( $ pos = 1 ; $ pos < $ numStrLength ; $ pos ++ ) { $ checksum *= 10 ; $ checksum += intval ( substr ( $ numStr , $ pos , 1 ) ) ; $ checksum %= 97 ; } return ( ( 98 - $ checksum ) === $ checkInt ) ; }
docstring: Check that the input value has a valid International Bank Account Number IBAN syntax
  Requirements are uppercase, no whitespaces, max length 34, country code and checksum exist at right spots,
  body matches against checksum via Mod97-10 algorithm
  
  @param string $check The value to check
  
  @return bool Success
docstring_tokens: Check that the input value has a valid International Bank Account Number IBAN syntax Requirements are uppercase no whitespaces max length 34 country code and checksum exist at right spots body matches against checksum via Mod97 - 10 algorithm