PHP scripts and programs for Beginner to Master
php programs, php ready to use scripts & functions, css tutorials, html, javascripts, ajax examples for Beginner to Master
Senin, 07 September 2009
Factorial of a number in php
This is a small program which generates a factorial of a number in php.
function doFactorial ($x) { if ($x <= 1) return 1; else return ($x * doFactorial ($x-1)); }
Tidak ada komentar:
Posting Komentar