note 42673 added to ref.math
| From: | churkl at hotmail dot com | Date: | Wed, 26 May 2004 05:32:45 +0000 |
| Subject: | note 42673 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70092@lists.php.net to get a copy of this message | ||
Here is my factorial function which i think is very simple and without any confusion. email me
comments if you like if i had something wrong.
function factorial($number)
{
$temp = 1;
while ($number > 1){
$temp *= $number--;
}
return $temp;
}
----
Manual Page -- http://www.php.net/manual/en/ref.math.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42673
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42673&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42673&report=yes
Search -- http://master.php.net/manage/user-notes.php