php-general | 2001092
Date: 09/19/01
- Next message: Rick Gardner: "Re: [PHP] preventing an include() from taking over?"
- Previous message: LRW: "[PHP] preventing an include() from taking over?"
- Next in thread: Eric O'Connell: "RE: [PHP] Weird results from Left Shift"
- Maybe reply: Eric O'Connell: "RE: [PHP] Weird results from Left Shift"
- Reply: Rasmus Lerdorf: "Re: [PHP] Weird results from Left Shift"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Okay, from the manual I have
$a << $b - Shift the bits of $a $b steps to the left
When I run the code
<?php
$num = "0001000";
echo "Number is $num<BR>";
$num = $num << 1;
echo "Shifted Number is $num";
?>
I get the output
Number is 0001000
Shifted Number is 2000
What am I missing?!?
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
- Next message: Rick Gardner: "Re: [PHP] preventing an include() from taking over?"
- Previous message: LRW: "[PHP] preventing an include() from taking over?"
- Next in thread: Eric O'Connell: "RE: [PHP] Weird results from Left Shift"
- Maybe reply: Eric O'Connell: "RE: [PHP] Weird results from Left Shift"
- Reply: Rasmus Lerdorf: "Re: [PHP] Weird results from Left Shift"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

