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 bool
isValid(string $iban)

Checks whether an IBAN has a valid checksum

Details

at line 13
static string checksum(string $iban)

Generates IBAN Checksum

Parameters

string $iban

Return Value

string

Checksum (numeric string)

at line 43
static int alphaToNumber(string $char)

Converts letter to number

Parameters

string $char

Return Value

int

at line 54
static int mod97(string $number)

Calculates mod97 on a numeric string

Parameters

string $number

Numeric string

Return Value

int

at line 69
static bool isValid(string $iban)

Checks whether an IBAN has a valid checksum

Parameters

string $iban

Return Value

bool