mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 23:35:45 +01:00
23 lines
387 B
Markdown
23 lines
387 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
|
|
```
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
1.1.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [PerfectSquare](PerfectSquare.md)
|
|
- [PrimeNumber](PrimeNumber.md)
|