NYCPHP Meetup

NYPHP.org

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

Adam Maccabee Trachtenberg adam at trachtenberg.com
Wed Aug 18 10:04:20 EDT 2004


On Wed, 18 Aug 2004, Tom wrote:

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

GMP allows arbitrary-length integers and supports logical
operations. I bet you could write some nice wrappers around that.

http://www.php.net/gmp

-adam

-- 
adam at trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list