mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 07:45:45 +01:00
19 lines
334 B
Markdown
19 lines
334 B
Markdown
# Factor
|
|
|
|
- `v::factor(int $dividend)`
|
|
|
|
Validates if the input is a factor of the defined dividend.
|
|
|
|
```php
|
|
v::factor(0)->validate(5); // true
|
|
v::factor(4)->validate(2); // true
|
|
v::factor(4)->validate(3); // false
|
|
```
|
|
|
|
***
|
|
See also:
|
|
|
|
* [Digit](Digit.md)
|
|
* [Finite](Finite.md)
|
|
* [Infinite](Infinite.md)
|
|
* [Numeric](Numeric.md)
|