respect-validation/docs/rules/Fibonacci.md
2018-12-11 13:31:50 +01:00

387 B

Fibonacci

  • Fibonacci()

Validates whether the input follows the Fibonacci integer sequence.

v::fibonacci()->validate(1); // true
v::fibonacci()->validate('34'); // true
v::fibonacci()->validate(6); // false

Changelog

Version Description
1.1.0 Created

See also: