The appendluhncheckdigit function adds a Luhn check digit to a series of digits.
Parameters
This function has one parameter:
digits – original digits.
Description
This function adds a Luhn check digit to a series of digits.
appendluhncheckdigit("4123-9876-452") ☞ 4123-9876-4529
See Also
History
Version | Status | Notes |
10.0 | New | New in this version. |