Validating a digit string
Validating string, digits: ctype_digit()
When you need to validate a string that contains digits, the function ctype_digit()
returns true if the input string contains only digits:
ctype_digit()
When you need to validate a string that contains digits, the function ctype_digit()
returns true if the input string contains only digits: