#!/usr/local/bin/php -f <!-- $Id: fibo.php,v 1.2 2003/12/30 01:22:14 davidw Exp $ http://www.bagley.org/~doug/shootout/ END COMMENT --> <?php function fibo($n){ return(($n < 2) ? 1 : fibo($n - 2) + fibo($n - 1)); } $n = ($argc == 2) ? $argv[1] : 1; $r = fibo($n); print "$r\n"; ?>