NYCPHP Meetup

NYPHP.org

[nycphp-talk] Bit-Vector equivalent for PHP?

ophir prusak lists at prusak.com
Wed Aug 18 08:11:53 EDT 2004


Hi Tom,

I'm not familiar with Perl's Bit-Vector package, but why not just use 
simple bitwise operators?
http://www.php.net/manual/en/language.operators.bitwise.php

Do you need more than 32 bits?

For flipping bits - why not just XOR the vector with ones ?

Ophir


Tom Melendez wrote:

>Hey Folks,
>
>Is there an equivalent to the Perl Bit-Vector package in PHP?
>
>I searched through this list, and the web, without much luck.
>
>If not, anyone have any classes they are using to flip bits?
>
>Thanks,
>
>Tom
>www.liphp.org
>
>_______________________________________________
>New York PHP Talk
>Supporting AMP Technology (Apache/MySQL/PHP)
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.newyorkphp.org
>  
>




More information about the talk mailing list