note 86508 deleted from language.operators.bitwise by danielc

From: Date: Mon, 13 Apr 2009 16:09:09 +0000
Subject: note 86508 deleted from language.operators.bitwise by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153149@lists.php.net to get a copy of this message
Note Submitter: thefamousdick at gmail dot com Reason: 0 ---- Just a quick Simple example on how BIT SHIFTING works <?php $a = 16; echo $a << 2; /* This would output the number 64. Why?? well bit shifting tells PHP to take the variable $a which in our case is 16 and shift if 2 bits which is basically like saying take 16 and multiply it by 2 twice. So 16 X 2 = 32 x 2 = 64*/ ;?>

« previous php.notes (#153149) next »