class TCNo

Methods

static string
checksum(string $identityPrefix)

Generates Turkish Identity Number Checksum Gets first 9 digit as prefix and calculates checksum

static bool
isValid(string $tcNo)

Checks whether a TCNo has a valid checksum

Details

at line 18
static string checksum(string $identityPrefix)

Generates Turkish Identity Number Checksum Gets first 9 digit as prefix and calculates checksum

https://en.wikipedia.org/wiki/Turkish_Identification_Number

Parameters

string $identityPrefix

Return Value

string

Checksum (two digit)

at line 49
static bool isValid(string $tcNo)

Checks whether a TCNo has a valid checksum

Parameters

string $tcNo

Return Value

bool