18 lines
213 B
Markdown
18 lines
213 B
Markdown
|
# 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)
|