Home
About Me
FAQ
Resumé
Portfolio
Table Tennis
Contact Me
Mobile Office
Song Database
Weather
Hosting

Free Stuff
Thumbnail Tool
Calendar Script
Credit Card


ISP Whitelisting Project


Credit Card Validation Script
     
Credit Card Validation
  A PHP function for validating a credit card number. Works for Visa, Mastercard, American Express and Discover. The function returns a 4-element array:
  • Credit Card type: Visa || Mastercard || American Express || Discover || Unknown
  • Numeric: Card number is all digits: True || False
  • Valid Length: Card number has correct number of digits for the type: True || False
  • Message: Result of the function: {Error Message} || OK
Pass a credit card number into the function to get the informational array:
$cardinfo = cardtype($cardnum);
 
 
     


Home | About Me | FAQ | Resume | Portfolio | Table Tennis | Contact Me | Mobile Office | Song Database | Weather | Hosting
I don't need a blog, a myspace or a facebook, I've got my name dot com!