print "Hooray! - Invalid IBAN successfully rejected.\n\n"; # Broken IIBAN $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"; # Loop through the registry's examples, validating foreach ($_iban_registry as $country) { # get country code $countrycode = $country['country']; # start section print "[{$countrycode}: " . iban_country_get_country_name($countrycode) . "]\n"; # output remaining country properties print "Is a SEPA member? "; if (iban_country_is_sepa($countrycode)) { print "Yes"; } else { print "No"; } print ".\n"; # get example iban $iban = $country['iban_example']; # output example iban properties one by one print "Example IBAN: " . iban_to_human_format($iban) . "\n"; print " - country " . iban_get_country_part($iban) . "\n"; print " - checksum " . iban_get_checksum_part($iban) . "\n"; print " - bban " . iban_get_bban_part($iban) . "\n";
public function Name() { return iban_country_get_country_name($this->code); }