Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

Hacking bitwise left shift operation with PHP

Posted byjeffrin June 27, 2014
<?php

$val = 1;

for($count = 0; $count <=10 ; $count++) {
echo "count is ..." . $count;
echo "\n";
echo "val is ..." . $val;
echo "\n";
$val = $val << 1;
}

?>
Posted byjeffrinJune 27, 2014Posted inPHP, Programming LanguagesTags: bitwise operation, left shift

Post navigation

Previous Post Previous post:
How to find out if nth bit of a number is set to 1?
Next Post Next post:
Hacking the program for counting bits set
June 2014
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May   Jul »
TRUEANGLE, Proudly powered by WordPress.