mirror of
https://github.com/Respect/Validation.git
synced 2024-06-11 02:02:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
29 lines
424 B
Markdown
29 lines
424 B
Markdown
# Fibonacci
|
|
|
|
- `Fibonacci()`
|
|
|
|
Validates whether the input follows the Fibonacci integer sequence.
|
|
|
|
```php
|
|
v::fibonacci()->validate(1); // true
|
|
v::fibonacci()->validate('34'); // true
|
|
v::fibonacci()->validate(6); // false
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Math
|
|
- Numbers
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
1.1.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [PerfectSquare](PerfectSquare.md)
|
|
- [PrimeNumber](PrimeNumber.md)
|