note 31520 added to ref.math
| From: | matthew_gaddis at yahoo dot com | Date: | Thu, 24 Apr 2003 19:23:08 +0000 |
| Subject: | note 31520 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47041@lists.php.net to get a copy of this message | ||
Here is a cleaner factorial function:
function factorial($s){
if($s) $r = $s * factorial($s - 1);
else $r = 1;
return $r;
}
--
http://www.php.net/manual/en/ref.math.php
http://master.php.net/manage/user-notes.php?action=edit+31520
http://master.php.net/manage/user-notes.php?action=delete+31520
http://master.php.net/manage/user-notes.php?action=reject+31520