note 124590 added to ref.math
| From: | sfcfreemail at gmail dot com | Date: | Thu, 09 Jan 2020 14:11:00 +0000 |
| Subject: | note 124590 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213821@lists.php.net to get a copy of this message | ||
And the reason I needed a Factorial function is because I there were no nPr or nCr functions native
to PHP, either.
function n_pick_r($n,$r){$n=(int)$n; $r=(int)$r;return (fact($n)/fact($n-$r));}
function n_choose_r($n,$r){$n=(int)$n; $r=(int)$r;return (n_pick_r($n,$r)/fact($r));}
Hope that helps someone!
exmple:https://www.fakera.com/
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.168 (proxied: 41.237.31.38)
----
Manual Page -- http://php.net/manual/en/ref.math.php
Edit -- https://master.php.net/note/edit/124590
Del: integrated -- https://master.php.net/note/delete/124590/integrated
Del: useless -- https://master.php.net/note/delete/124590/useless
Del: bad code -- https://master.php.net/note/delete/124590/bad+code
Del: spam -- https://master.php.net/note/delete/124590/spam
Del: non-english -- https://master.php.net/note/delete/124590/non-english
Del: in docs -- https://master.php.net/note/delete/124590/in+docs
Del: other reasons-- https://master.php.net/note/delete/124590
Reject -- https://master.php.net/note/reject/124590
Search -- https://master.php.net/manage/user-notes.php