respect-validation/docs/IntVal.md
Henrique Moody 2a2e1d577e
Change how documentation of rules are presented
Rules are not always used from the alias `v`, neither called staticaly.
2017-03-27 17:26:21 +02:00

268 B

IntVal

  • IntVal()

Validates if the input is an integer.

v::intVal()->validate('10'); // true
v::intVal()->validate(10); // true

See also: