NYCPHP Meetup

NYPHP.org

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

Tom tom at supertom.com
Wed Aug 18 08:48:34 EDT 2004


Hi Ophir,

Thanks for the response.

Yes, I need more than 32 bits. :-(

Worst case, I'll just shell-exec to a Perl program, but I just wanted to see
if anyone had any other ideas.

Tom 

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of ophir prusak
Sent: Wednesday, August 18, 2004 8:12 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Bit-Vector equivalent for PHP?

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

_______________________________________________
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