Last active
May 5, 2019 07:45
-
-
Save arthurkushman/1c5a4ade40279e12f1da0fcbbc1f0925 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function fib(int $n) | |
{ | |
return number_format(round(1.618 ** $n / 2.236)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment