IBANCountry::IANA PHP Method

IANA() public method

public IANA ( )
    public function IANA()
    {
        return iban_country_get_iana($this->code);
    }

Usage Example

Example #1
0
$suggestions = $myIban->MistranscriptionSuggestions();
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";
    $errors++;
}
print "\n";
# Get list of countries
$countries = $myIban->Countries();
# Loop through the registry's examples, validating
foreach ($countries as $countrycode) {
    # instantiate
    $myCountry = new IBANCountry($countrycode);
    # get country code
    $ianacountrycode = $myCountry->IANA();
    $iso3166countrycode = $myCountry->ISO3166();
    # start section
    print "[{$countrycode} (";
    $codes_output = 0;
    if ($ianacountrycode != '') {
        print "IANA:.{$ianacountrycode}";
        $codes_output++;
    }
    if ($iso3166countrycode != '') {
        if ($codes_output > 0) {
            print ", ";
        }
        print "ISO3166-1 alpha-2:{$iso3166countrycode}";
    }
    if ($codes_output == 0) {