Skip to content

Use is_numeric instead of ctype_digit to validate numeric type#5

Open
humancopyright wants to merge 1 commit into
inacho:masterfrom
humancopyright:master
Open

Use is_numeric instead of ctype_digit to validate numeric type#5
humancopyright wants to merge 1 commit into
inacho:masterfrom
humancopyright:master

Conversation

@humancopyright
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant