respect-validation/docs/rules/Even.md

28 lines
345 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# Even
- `Even()`
2015-01-30 09:40:06 +01:00
Validates whether the input is an even number or not.
2015-01-30 09:40:06 +01:00
```php
v::intVal()->even()->validate(2); // true
2015-01-30 09:40:06 +01:00
```
Using `int()` before `even()` is a best practice.
## Categorization
- Numbers
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
2015-01-30 09:40:06 +01:00
- [Multiple](Multiple.md)
2018-12-11 13:31:50 +01:00
- [Odd](Odd.md)