Implementation of the Luhn Algorithm in PHP