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

213 B

Odd

  • v::odd()

Validates an odd number.

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

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


See also: