respect-validation/docs/rules/Even.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

345 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.

Categorization

  • Numbers

Changelog

Version Description
0.3.9 Created

See also: