Odd

  • v::odd()

Validates an odd number.

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

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


See also: