Credit Card Validation Function
Whethere you are building a shopping cart or just requesting your customer’s credit card number for some purpose, we are constantly faced with abusers that fill invalid or fake credit card numbers. This little function courtesy of SoftwareProjects.com will help you avoid that. function validCC($cc\_num) { $pattern = “/^3\[47\]d{13}$/”;//American Express if (preg\_match($pattern,$cc\_num)) { return true;