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

Categorization

  • Math
  • Numbers

Changelog

Version Description
1.1.0 Created

See also: