On Tue, July 4, 2006 7:35 am, Mathijs wrote:
//Do if VALIDATE_CHECK1 is set BUT NOT when VALIDATE_CHECK3 is set.
if ($flag2 self::VALIDATE_CHECK1 $flag2 ~self::VALIDATE_CHECK3)
Did you check operator precedence for versus ?
Perhaps you just need parentheses...
I'm also not at all sure the
Hello there.
I am working with some bitwise Operators for validating some variables.
Now i need to know if an certain bit is NOT set and an other bit IS set.
Example.
?php
const VALIDATE_CHECK1 = 1;
const VALIDATE_CHECK2 = 2;
const VALIDATE_CHECK3 = 4;
const VALIDATE_ALL= 7;
//--Example
Mathijs wrote:
Hello there.
I am working with some bitwise Operators for validating some variables.
Now i need to know if an certain bit is NOT set and an other bit IS set.
Example.
?php
const VALIDATE_CHECK1 = 1;
const VALIDATE_CHECK2 = 2;
const VALIDATE_CHECK3 = 4;
const
3 matches
Mail list logo