php-credit-card-validator icon indicating copy to clipboard operation
php-credit-card-validator copied to clipboard

Use is_numeric instead of ctype_digit to validate numeric type

Open humancopyright opened this issue 9 years ago • 0 comments

Using ctype_digit doesn't work as expected. For example for the CVC of 243 which is valid it returns false. Using is_numeric is more appropriate in this case.

humancopyright avatar Jan 18 '16 19:01 humancopyright