respect-validation/docs/Factor.md
2016-11-06 18:45:44 +01:00

340 B

Factor

  • v::factor(int $dividend)

Validates if the input is a factor of the defined dividend.

v::factor(0)->validate(5); // true
v::factor(4)->validate(2); // true
v::factor(4)->validate(3); // false

See also: