the LUHN formula
• Views: 3,561
discovered while researching a PHP project: credit card numbers are generated according to a simple formula that allows them to be checked and verified. on the zend site, i found some useful PHP code—a class that provides methods for cleaning, validating and identifying the types of credit card numbers.