18 lines
317 B
Markdown
18 lines
317 B
Markdown
|
# Fibonacci
|
||
|
|
||
|
- `v::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
|
||
|
```
|
||
|
|
||
|
***
|
||
|
See also:
|
||
|
|
||
|
* [PerfectSquare](PerfectSquare.md)
|
||
|
* [PrimeNumber](PrimeNumber.md)
|