validating credit card numbers - Mon Aug 17, 2009
This code is pretty old now but still useful for basic checks against incoming credit card data. In most situations these days, this logic will be handled via supplied libraries from the processor themselves but it still is often useful to trim out the garbage data before you get to that point.
Source code for this simple credit card validation class can be found here.
topics: PHP, programming
Experienced PHP web developer.
$35 an hour, no job too small.
There is no replacement for integrity and experience.