Ejemplo n.º 1
0
                } elseif (count($suggestions) > 1) {
                    print " (perhaps ";
                    $done = 0;
                    foreach ($suggestions as $suggestion) {
                        if ($done > 0) {
                            print ', or ';
                        }
                        print "'" . $suggestion . "'";
                        $done++;
                    }
                    print "?)";
                }
            }
        } else {
            print "ok";
            $result = iban_verify_nationalchecksum($iban);
            if ($result === '') {
                print " (no national checksum)";
            } elseif ($result != true) {
                print " (but national checksum FAILED! ";
                print "expected '" . iban_find_nationalchecksum($iban) . "', contains '" . iban_get_nationalchecksum_part($iban) . "'. bank code is '" . iban_get_bank_part($iban) . "')";
                $errors++;
            }
            #$parts = iban_get_parts($iban);
            #foreach($parts as $name=>$value) {
            # print "    $name: $value\n";
            #}
        }
        print "\n";
    }
}
Ejemplo n.º 2
0
 public function VerifyNationalChecksum()
 {
     return iban_verify_nationalchecksum($this->iban);
 }