[PHP] Can someone tell me what a tilde means ?

2008-04-08 Thread Tony Collings
The humble tilde (~). I came across it the other day in some PHP code [code]~E_ERROR[/code] I'm curious, can't find any documentation on it. In math it refers to propostional logic, is it the same thing in PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Could someone tell me what a tilde(~) in PHP does ?

2008-04-08 Thread Tony Collings
The humble tilde (~). I came across it the other day in some PHP code [code]~E_ERROR[/code] I'm curious, can't find any documentation on it. In math it refers to propostional logic, is it the same thing in PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Re: Could someone tell me what a tilde(~) in PHP does ?

2008-04-08 Thread Tony Collings
08 at 6:19 AM, Tony Collings <[EMAIL PROTECTED]> wrote: > The humble tilde (~). I came across it the other day in some PHP code > [code]~E_ERROR[/code] That comes from C, not postpositional math. It's bitwise negation. That is, the number 47 in binary is 110001, with leading 0