respect-validation/docs/Odd.md
2015-10-07 11:46:57 -03:00

212 B

Odd

  • v::odd()

Validates an odd number.

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

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


See also: