C & PHP: Storing settings in an integer using bitwise operators?
Posted
by Andrew M
on Stack Overflow
See other posts from Stack Overflow
or by Andrew M
Published on 2010-05-05T14:07:29Z
Indexed on
2010/05/05
14:38 UTC
Read the original article
Hit count: 359
I'm not familiar with bitwise operators, but I have seem them used to store simple settings before.
I need to pass several on/off options to a function, and I'd like to use a single integer for this. How can I go about setting and reading these options?
© Stack Overflow or respective owner