It depends what you actually want to achieve -
Note that the constants are given as hex, octal and binary for the successive samples.
For completeness it should be noted that $value &= ~2 resets the bit.
In reply to Re: How may I set a bit or change (10100101 to 10100111)?
by GrandFather
in thread How may I set a bit or change (10100101 to 10100111)?
by unixhome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |