(PHP 7 >= 7.3.0)
gmp_binomial — Calculates binomial coefficient
Calculates the binomial coefficient C(n, k).
n
Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
k
Returns the binomial coefficient C(n, k), or FALSE
on failure.
Issues E_WARNING if k
is negative.