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
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.
>
>
> const VALIDATE_CHECK1 = 1;
> const VALIDATE_CHECK2 = 2;
> const VALIDATE_CHECK3 = 4;
> const V
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.
This last example i can't seem to get to work.
I Want to only do that when for example VALIDATE_CHECK3 is not within the
$fla
3 matches
Mail list logo