class Iban

Methods

static  string
checksum( string $iban)

Generates IBAN Checksum

static  int
alphaToNumber( string $char)

Converts letter to number

static  int
mod97( string $number)

Calculates mod97 on a numeric string

static  boolean
isValid( string $iban)

Checks whether an IBAN has a valid checksum

Details

static string checksum( string $iban)

Generates IBAN Checksum

Parameters

string $iban

Return Value

string Checksum (numeric string)

static int alphaToNumber( string $char)

Converts letter to number

Parameters

string $char

Return Value

int

static int mod97( string $number)

Calculates mod97 on a numeric string

Parameters

string $number Numeric string

Return Value

int

static boolean isValid( string $iban)

Checks whether an IBAN has a valid checksum

Parameters

string $iban

Return Value

boolean