gmp_testbit

gmp_testbit

(PHP 5 >= 5.3.0, PHP 7)

gmp_testbitTests if a bit is set

Description

bool gmp_testbit ( GMP $a , int $index )

Tests if the specified bit is set.

Parameters

a

Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string p