What if on PHP's next version they included a factorial function? It would help complete their library of math functions. Here's a link to a guy who wrote a good one (including permutations and combinations):
http://davidaltherr.net/web/php_functions/factorial/factorial_show.php -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php