note 42048 deleted from ref.math by cmb
| From: | cmb@php.net | Date: | Sun, 21 Jul 2019 08:58:26 +0000 |
| Subject: | note 42048 deleted from ref.math by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211658@lists.php.net to get a copy of this message | ||
Note Submitter: ausvald at tut dot by
----
I see there are some factorial functions below.
I'll provide the best one:
<?
function factorial($n){ $n=(int)$n;
$f=1;
for(;$n>0;--$n) $f*=$n;
return $f;
}
?>