note 86508 added to language.operators.bitwise

From: Date: Wed, 22 Oct 2008 15:12:01 +0000
Subject: note 86508 added to language.operators.bitwise
Groups: php.notes 
Request: Send a blank email to php-notes+get-145596@lists.php.net to get a copy of this message
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*/ ;?> ---- Server IP: 69.147.83.197 Probable Submitter: 196.35.158.178 (proxied: 196.213.52.82) ---- Manual Page -- http://www.php.net/manual/en/language.operators.bitwise.php Edit -- https://master.php.net/note/edit/86508 Del: integrated -- https://master.php.net/note/delete/86508/integrated Del: useless -- https://master.php.net/note/delete/86508/useless Del: bad code -- https://master.php.net/note/delete/86508/bad+code Del: spam -- https://master.php.net/note/delete/86508/spam Del: non-english -- https://master.php.net/note/delete/86508/non-english Del: in docs -- https://master.php.net/note/delete/86508/in+docs Del: other reasons-- https://master.php.net/note/delete/86508 Reject -- https://master.php.net/note/reject/86508 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145596) next »