mirror of
https://github.com/danog/parser.git
synced 2024-12-12 17:17:23 +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);
|
|
} |