ctype_digit
was built precisely for this purpose.
More Related Contents:
- Regex For a Simple Validation [closed]
- how to make a function that validates fields in a form? php [closed]
- PHP “php://input” vs $_POST
- PHP validation/regex for URL
- How to validate an Email in PHP?
- Checking if form has been submitted – PHP
- php date validation
- Easiest Form validation library for PHP? [closed]
- What is the best way to validate a credit card in PHP?
- Checking if all the array items are empty PHP
- How do you loop through $_FILES array?
- How do I see which checkbox is checked?
- How to “Validate” Human Names in CakePHP?
- PHP regular expression for strong password validation [duplicate]
- Laravel password validation rule
- How to set a class attribute to a Symfony2 form input
- Validating US phone number with php/regex
- Laravel: Validation unique on update
- get_headers Inconsistency [closed]
- How validate unique email out of the user that is updating it in Laravel?
- checking if a number is float in PHP
- How to Validate on Max File Size in Laravel?
- Laravel change input value
- Regex for password PHP [duplicate]
- Custom validator in Laravel 5
- Best way to check for positive integer (PHP)?
- How to return custom error message from controller method validation
- How to validate that a string only contain lowercase letters?
- Which function in php validate if the string is valid html?
- Better way to check variable for null or empty string?