respect-validation/docs/Even.md
paul karikari 51ec5e1b95
Apply contribution guidelines to "Even" rule
Also add an extra validation to the rule, not allowing non-integers to
be considered as even numbers.

Co-Authored-By: Henrique Moody <henriquemoody@gmail.com>
2018-05-31 08:37:38 +02:00

315 B

Even

  • Even()

Validates whether the input is an even number or not.

v::intVal()->even()->validate(2); // true

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

Changelog

Version Description
0.3.9 Created

See also: