Fibonacci()
Validates whether the input follows the Fibonacci integer sequence.
v::fibonacci()->assert(1);
// Validation passes successfully
v::fibonacci()->assert('34');
// Validation passes successfully
v::fibonacci()->assert(6);
// → 6 must be a valid Fibonacci number| Mode | Template |
|---|---|
default |
{{subject}} must be a valid Fibonacci number |
inverted |
{{subject}} must not be a valid Fibonacci number |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Math
- Numbers
| Version | Description |
|---|---|
| 1.1.0 | Created |