Home > PHP > Function > GMP > gmp_popcount()

gmp_popcount()

gmp_popcount - Population count

Syntax

int gmp_popcount (resource $a)

Arguments

  • a - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.

Description

Get the population count.

Version

PHP 4.0.4, 5

Return value

The population count of a, as an integer.