Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

RE: [PHP3] bit shifting From: APIS (apis <email protected>)
Date: 07/06/98

        o Excellent good -- as soon as *fire-work's* noise clears,
                will update server.

        o Every `lil bit' you do is appreciated here. *groan*
Thanks
-nnnn-
On Tue, 7 Jul 1998, Zeev Suraski wrote:

> At 16:20 06/07/98 -0500, APIS wrote:
> > o Will PHP3 also someday support bit shifts and set bit and
> >clear bit and test bit operations?
>
> As mentioned numerous times on the list, PHP now supports bit shifting (as
> of version 3.0.1).
> Clearing bits and testing them can be done just like in C:
>
> $a |= 1<<4; /* enable the 4th bit of $a */
>
> if ($a & 1<<4) { /* test if the 4th bit of $a is on */
> ...
> }
>
> Zeev
>
> --
> Zeev Suraski <zeev <email protected>>
> For a PGP public key, finger bourbon <email protected>
>
>
NNNN

--
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