PHP Classes

Bit Array: Manipulate compact arrays of bit values

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 940 All time: 3,789 This week: 251Up
Version License Categories
bitarray 1.0.0Free for non-comm...Data types
Description Author

This class is meant to manipulate compact array of bit values. These values are represented as booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0).

The class can manipulate bit arrays that are stored internally as strings.

The bit arrays may have variable length that is specified when an object of the class is created. Currently the length is limited to 32 bits.

The class provides functions to get and set individual bits values. It also provides functions to perform the bitwise logical operations between two bit arrays AND, OR, XOR and also NOT operartion to invert the bits of one array.

The class is a PHP port of the BitArray class of the .NET framework.

Picture of Cornelius Bolten
Name: Cornelius Bolten <contact>
Classes: 8 packages by
Country: Germany Germany
Age: 38
All time rank: 25310 in Germany Germany
Week rank: 370 Down15 in Germany Germany Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.and.BitArray.php Example and-example script
Accessible without login Plain text file example.BitArray.php Example example - usage file (setup BitArray, add/edit values)
Accessible without login Plain text file example.not.BitArray.php Example not-example script
Accessible without login Plain text file example.or.BitArray.php Example or-example script
Accessible without login Plain text file example.xor.BitArray.php Example xor-example script
Plain text file lib.BitArray.php Class main BitArray-Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:940
This week:0
All time:3,789
This week:251Up
For more information send a message to info at phpclasses dot org.