php3-list | 199807
Date: 07/02/98
- Next message: Vincent Kurt Stoessel: "Re: [PHP3] php3 and msql (0 is not a mSQL result index)"
- Previous message: Zeev Suraski: "Re: [PHP3]"
- In reply to: Stig S. Bakken: "Re: [PHP3] bit shifting"
- Next in thread: Lorenzo Huerta: "Re: [PHP3] bit shifting"
- Reply: Lorenzo Huerta: "Re: [PHP3] bit shifting"
- Reply: Zeev Suraski: "Re: [PHP3] bit shifting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Forgive my stupid question,
but what would be a pratical use of
bit shifting?
Stig S. Bakken wrote:
>
> [Lorenzo Huerta <lorenzo <email protected>>]
> |
> | are there any fnctions in php3 that allow you to do bit shifting, like shr
> | and shl in php2?
>
> PHP has bit shifting operators just like C:
>
> $a = $a << 2;
> $b = $b >> 4;
> $a <<= 2;
> $b >>= 4;
>
> - Stig
> --
> Stig S. Bakken Guardian Networks AS
> mailto:ssb <email protected> Trondheim, Norway
> http://www.pvv.org/~ssb/ http://www.guardian.no/
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html
- Next message: Vincent Kurt Stoessel: "Re: [PHP3] php3 and msql (0 is not a mSQL result index)"
- Previous message: Zeev Suraski: "Re: [PHP3]"
- In reply to: Stig S. Bakken: "Re: [PHP3] bit shifting"
- Next in thread: Lorenzo Huerta: "Re: [PHP3] bit shifting"
- Reply: Lorenzo Huerta: "Re: [PHP3] bit shifting"
- Reply: Zeev Suraski: "Re: [PHP3] bit shifting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

