Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 331 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 331 Bytes

PHP-luhn

Implementation of the Luhn-algoritm in PHP

This function for PHP takes a number, and check if its checksum and control digit is valid for the Luhn-Algoritm. It asumes that the last digit is the control digit.

For more information about the Luhn-algoritm, please see http://en.wikipedia.org/wiki/Luhn_algorithm