Bitwise operators
| From: | cron at odi dot com dot br | Date: | Mon, 26 Sep 2005 16:18:03 +0000 |
| Subject: | Bitwise operators | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223202@lists.php.net to get a copy of this message | ||
Hello,
From php manual:
$a << $b Shift leftShift the bits of $a $b steps to the left (each step
means "multiply by two")
$a >> $b Shift rightShift the bits of $a $b steps to the right (each step
means "divide by two")
So i ask what this output?
$a = 4;
$b = 3;
echo $a << $b;
echo $a >> $b;
Angelo