gmp_popcount

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_popcount - Population count
Manual
Code Examples

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.

Example of gmp_popcount

Show all examples for gmp_popcount

PHP Version: