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