tao-test/app/vendor/respect/validation/docs/rules/Odd.md

18 lines
213 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# Odd
- `v::odd()`
Validates an odd number.
```php
v::intVal()->odd()->validate(3); // true
```
Using `int()` before `odd()` is a best practice.
***
See also:
* [Even](Even.md)
* [Multiple](Multiple.md)