IntType()
Validates whether the type of the input is integer.
v::intType()->isValid(42); // true
v::intType()->isValid('10'); // false| Mode | Template |
|---|---|
default |
{{subject}} must be an integer |
inverted |
{{subject}} must not be an integer |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Numbers
- Types
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: