[PHP] Re: Bitwise operator question

2003-03-03 Thread Philip Hallstrom
Here's how I think about it... CREATE_RECORDS = 1 in decimal and 0001 in binary. ALTER_RECORDS = 4 in decimal and 0101 in binary. that line returns a binary string where *any* of the bits are 1, so line them up: 0001 | 0101 = 0101 which is 5. On Mon, 3 Mar 2003, Dan Sabo wrote: Hi,

[PHP] RE: Bitwise operator question

2003-03-03 Thread Dan Sabo
Hi Phillip, Don't U mean 0001 | 0100 = 0101 ? Dan -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:33 PM To: Dan Sabo Cc: [EMAIL PROTECTED] Subject: Re: Bitwise operator question Here's how I think about it...

[PHP] RE: Bitwise operator question

2003-03-03 Thread Philip Hallstrom
Yes. Oops. -philip On Mon, 3 Mar 2003, Dan Sabo wrote: Hi Phillip, Don't U mean 0001 | 0100 = 0101 ? Dan -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:33 PM To: Dan Sabo Cc: [EMAIL PROTECTED] Subject:

RE: [PHP] RE: Bitwise operator question

2003-03-03 Thread Dan Sabo
: [EMAIL PROTECTED] Subject: [PHP] RE: Bitwise operator question Yes. Oops. -philip On Mon, 3 Mar 2003, Dan Sabo wrote: Hi Phillip, Don't U mean 0001 | 0100 = 0101 ? Dan -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Monday, March 03