note 42048 added to ref.math

From: Date: Fri, 30 Apr 2004 21:48:28 +0000
Subject: note 42048 added to ref.math
Groups: php.notes 
Request: Send a blank email to php-notes+get-69050@lists.php.net to get a copy of this message
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; } ?> ---- Manual Page -- http://www.php.net/manual/en/ref.math.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42048 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42048&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42048&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69050) next »