if (!empty($_POST['fname']))
{
// Maak array van textarea
$iban = $_POST['fname'];
if(verify_iban($iban)) {
$iban_country = iban_get_country_part($iban);
## -------------------------------
# Get the name of an IBAN country
$country_name = iban_country_get_country_name($iban_country);
# Get the domestic example for an IBAN country
$country_domestic_example = iban_country_get_domestic_example($iban_country);
# Get the BBAN example for an IBAN country
$country_bban_example = iban_country_get_bban_example($iban_country);
# Get the BBAN format (in SWIFT format) for an IBAN country
$country_bban_format_as_swift = iban_country_get_bban_format_swift($iban_country);
# Get the BBAN format (as a regular expression) for an IBAN country
$country_bban_format_as_regex = iban_country_get_bban_format_regex($iban_country);
# Get the BBAN length for an IBAN country
$country_bban_length = iban_country_get_bban_length($iban_country);
# Get the IBAN example for an IBAN country
$country_iban_example = iban_country_get_iban_example($iban_country);
## -------------------------------
# Get an array of all the parts from an IBAN
$iban_parts = iban_get_parts($iban);
# Get the BBAN part from an IBAN
$bban = iban_get_bban_part($iban);
# Get the Bank ID (institution code) from an IBAN
$bank = iban_get_bank_part($iban);
# Get the Branch ID (sort code) from an IBAN
# (NOTE: only available for some countries)
$sortcode = iban_get_branch_part($iban);
# Get the (branch-local) account ID from an IBAN
# (NOTE: only available for some countries)
$account = iban_get_account_part($iban);
$correctmessage = '
';}
//if(iban_verify_checksum($iban)) {echo 'goed';}else {echo 'fout';}
}
?>
Supported countries
Albania, Andorra, Austria, Azerbaijan, Bahrain, Belgium, Bosnia and Herzegovina, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Faroe Islands, Finland, France, Georgia, Germany, Gibraltar, Greece, Greenland, Hungary, Iceland, Ireland, Israel, Italy, Jordan, Kuwait, Latvia, Lebanon, Liechtenstein, Lithuania, Luxembourg, Macedonia, Malta, Mauritius, Moldova, Monaco, Montenegro, Netherlands, Norway, Pakistan, Poland, Portugal, Qatar, Romania, San Marino, Saudi Arabia, Serbia, Slovak Republic, Slovenia, Spain, Sweden, Switzerland, Tunisia, Turkey, UAE, United Kingdom.