gmp_clrbit
gmp_clrbit
Clear bit
void **gmp_clrbit** GMP $num int $index
Clears (sets to 0) bit in
. The index starts at 0.
index``num
num
A object.
GMP
indexThe index of the bit to clear. Index 0 represents the least significant bit.
return.void
Voorbeeld: example
<?php
$a = gmp_init("0xff");
gmp_clrbit($a, 0); // index starts at 0, least significant bit
echo gmp_strval($a) . "\n";
?>
254
Opmerking: > Unlike most of the other GMP functions, must be called with a GMP object that already exists (using for example). One will not be automatically created.
gmp_clrbit``gmp_init
gmp_setbit``gmp_testbit