gmp_popcount
PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_popcount - Population count
Manual
gmp_popcount(
GMP|int|string$num ): int
Get the population count.
Parameters
- num
-
A GMP object, an int or a numeric string.
Return Values
The population count of num, as an int.