Méthode | Description | |
---|---|---|
computeCheckDigit ( $partialNumber ) : string | ||
generateLuhnNumber ( $partialValue ) : string | Generate a Luhn compliant number. | |
isValid ( string $number ) : boolean | Checks whether a number (partial number + check digit) is Luhn compliant |
Méthode | Description | |
---|---|---|
checksum ( string $number ) : integer |
public static computeCheckDigit ( $partialNumber ) : string | ||
$partialNumber | ||
Résultat | string |
public static generateLuhnNumber ( $partialValue ) : string | ||
Résultat | string |