I tested; I don't want to waste peoples time. Rewriting the question:

 

$a = 4;
$b = 3;

 

$c =   $a << $b;
$d =  $a >> $b;

 

echo "c = " . $c . "<br>";
echo "d = " . $d . "<br>";

 

this outputs:

 

c = 32
d = 0

 

The question is why?

 

Angelo



----- Original Message ----- 
From: "Chris W. Parker" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Monday, September 26, 2005 1:28 PM
Subject: RE: [PHP] Bitwise operators


[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    on Monday, September 26, 2005 9:18 AM said:

> So i ask what this output?
> 
> $a = 4;
> $b = 3;
> 
> echo  $a << $b;
> echo  $a >> $b;

You just spent 3-5 minutes writing an email and now almost 10 minutes
waiting for a reply to something that would have taken you 2 minutes to
test on your own.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to