respect-validation/docs/rules/Even.md
2018-12-11 13:31:50 +01:00

23 lines
315 B
Markdown

# Even
- `Even()`
Validates whether the input is an even number or not.
```php
v::intVal()->even()->validate(2); // true
```
Using `int()` before `even()` is a best practice.
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
- [Multiple](Multiple.md)
- [Odd](Odd.md)