respect-validation/docs/rules/PerfectSquare.md

29 lines
407 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# PerfectSquare
- `PerfectSquare()`
2015-01-30 09:40:06 +01:00
Validates whether the input is a perfect square.
2015-01-30 09:40:06 +01:00
```php
v::perfectSquare()->validate(25); // true (5*5)
v::perfectSquare()->validate(9); // true (3*3)
2015-01-30 09:40:06 +01:00
```
## Categorization
- Math
- Numbers
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
- [Factor](Factor.md)
2018-12-11 13:31:50 +01:00
- [Fibonacci](Fibonacci.md)
- [PrimeNumber](PrimeNumber.md)