Re: [PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Andy McKenzie
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie wrote: > 'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: >> Even if I'd thought about it in terms of the architecture, I >> would have assumed that PHP would treat a two-bit number as a two-bit >> number > > You two-bit hustler

[PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Colin Guthrie
'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: > Even if I'd thought about it in terms of the architecture, I > would have assumed that PHP would treat a two-bit number as a two-bit > number You two-bit hustler! In all seriousness tho', where do you ever provide a two bit

[PHP] Re: Bitwise NOT operator?

2010-08-20 Thread Colin Guthrie
'Twas brillig, and Andy McKenzie at 20/08/10 16:10 did gyre and gimble: > Hey everyone, > > I'm really not sure what's going on here: basically, the bitwise > NOT operator seems to simply not work. Here's an example of what I > see. > > Script > > $ cat bintest2.php >

RE: [PHP] RE: Bitwise operator question

2003-03-03 Thread Dan Sabo
To: Dan Sabo Cc: [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

[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 PROTE

[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... CRE

[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, > >