mirror of
https://github.com/Respect/Validation.git
synced 2024-05-29 03:42:25 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
28 lines
345 B
Markdown
28 lines
345 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.
|
|
|
|
## Categorization
|
|
|
|
- Numbers
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
0.3.9 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Multiple](Multiple.md)
|
|
- [Odd](Odd.md)
|