Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 411 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 411 Bytes

hmmmath

Test

Delicious math component for PHP

Fibonacci number sequences

<?php
use hmmmath\Fibonacci\FibonacciFactory;

foreach (FibonacciFactory::sequence(0, 1) as $number) {
    var_dump($number);
}

Will output:

int(0)
int(1)
int(1)
int(2)
int(3)
int(5)
int(8)
int(13)
int(21)
int(34)
int(55)
int(89)
int(144)
...