Say I assign the following fruits:
array ('1' => 'apple', '2' => 'banana', '4' => 'grape', '8' => 'orange')
If I wanted to represent apple and banana, I could just do the following: 0001 OR 0010 to get 0011 (or 3), right?
Given the number 3, how do I convert that to 1 and 2?
0001 AND 0010is 0. Probably you mean0001 OR 0010&and|if anything.2 << 3; // 8