Hacking bitwise left shift operation with PHP


<?php

$val = 1;

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

?>
,

%d bloggers like this: