<?php
ini_set('display_errors',1);
ini_set('error_reporting',E_ALL);
require_once(dirname(dirname(__FILE__)) . '/php-iban.php');
$errors=0;
$iban = "(@#(*@*ZV-This is NOT an IBAN!";
if(verify_iban($iban)) {
print "ERROR: An invalid IBAN was validated!\n";
$errors++;
}
print "Hooray! - Invalid IBAN successfully rejected.\n\n";
$broken_iiban = 'AA12011123ZS6';
$suggestions = iban_mistranscription_suggestions($broken_iiban);
if(count($suggestions)) {
print "Hooray! Successfully derived '" . implode(',',$suggestions) . "' as likely transcription error source suggestion(s) for the incorrect IBAN $broken_iiban.\n";
}
else {
print "ERROR: Not able to ascertain suggested transcription error source(s) for $broken_iiban.\n";
}
print "\n";
foreach($_iban_registry as $country) {
$countrycode = $country['country'];
print "[$countrycode: " . iban_country_get_country_name($countrycode) . "]\n";
print "Is a SEPA member? ";