respect-validation/docs/rules/IntType.md

45 lines
827 B
Markdown
Raw Permalink Normal View History

2015-10-17 04:43:01 +02:00
# IntType
- `IntType()`
2015-10-17 04:43:01 +02:00
Validates whether the type of the input is [integer](http://php.net/types.integer).
2015-10-17 04:43:01 +02:00
```php
v::intType()->validate(42); // true
v::intType()->validate('10'); // false
```
## Categorization
- Numbers
- Types
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
2015-10-17 04:43:01 +02:00
***
See also:
2018-12-11 13:31:50 +01:00
- [ArrayType](ArrayType.md)
- [BoolType](BoolType.md)
2018-12-11 13:31:50 +01:00
- [BoolVal](BoolVal.md)
- [CallableType](CallableType.md)
- [Decimal](Decimal.md)
- [Digit](Digit.md)
- [Finite](Finite.md)
- [FloatType](FloatType.md)
2018-12-11 13:31:50 +01:00
- [FloatVal](FloatVal.md)
- [Infinite](Infinite.md)
- [IntVal](IntVal.md)
- [NullType](NullType.md)
2018-12-11 13:31:50 +01:00
- [Number](Number.md)
- [NumericVal](NumericVal.md)
- [ObjectType](ObjectType.md)
- [ResourceType](ResourceType.md)
- [StringType](StringType.md)
2018-12-11 13:31:50 +01:00
- [StringVal](StringVal.md)
- [Type](Type.md)