mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 23:35:45 +01:00
23 lines
315 B
Markdown
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)
|