[PHP] Binary refresher needed

2004-08-29 Thread John Holmes
Okay, I need a reminder on this. A given variable can consist of two constants ORd together, say TEST1 and TEST2. If I'm looking to see if one of the constants was set in the variable, I use , right? if(($value TEST1) == TEST1) { echo 'TEST1 flag was set.'; } if(($value TEST2) == TEST2) {

Re: [PHP] Binary refresher needed

2004-08-29 Thread Marek Kilimajer
John Holmes wrote: Okay, I need a reminder on this. A given variable can consist of two constants ORd together, say TEST1 and TEST2. If I'm looking to see if one of the constants was set in the variable, I use , right? if(($value TEST1) == TEST1) { echo 'TEST1 flag was set.'; } if(($value