This extension for PHP provides routines for manipulating bitsets. WWW: http://pecl.php.net/package/Bitset