respect-validation/docs/Odd.md
2015-08-20 01:38:41 -03:00

209 B

Odd

  • v::odd()

Validates an odd number.

v::int()->odd()->validate(3); //true

Using int() before odd() is a best practice.


See also: