Thread: operators
View Single Post
  #16  
Old 11-05-2006, 11:01 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
In addition, ...
| (or)
PHP Code:
var_a 7// or in binary,  000....0111
var_b 14// or in binary, 000....1110
// in the bit in each position becomes 1 if either bits from either variable are 1.
var_c var_a var_b// which yields 000....1111, or 15. 
& (and)
PHP Code:
var_a 7// or in binary,  000....0111
var_b 14// or in binary, 000....1110
// in the bit in each position becomes 1 if both bits from either variable are 1.
var_c var_a var_b// which yields 000....0110, or 6. 
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/

Last edited by Tolnaftate2004; 11-06-2006 at 08:09 PM..
Reply With Quote