mirror of
https://github.com/danog/parser.git
synced 2024-12-02 09:27:50 +01:00
9 lines
109 B
PHP
9 lines
109 B
PHP
<?php
|
|
|
|
function fib($n) {
|
|
if ($n < 2) {
|
|
return $n;
|
|
}
|
|
|
|
return fib($n - 1) + fib($n - 2);
|
|
} |