Login   Register  
PHP Classes
elePHPant
Icontem

bitvec: Manipulate arrays of bits with SplFixedArray class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-12-27 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 166 All time: 7,347 This week: 1,457Up
Version License PHP version Categories  
bitvec 1.0Public Domain5.0PHP 5, Data types
Description Author  

This package can manipulate arrays of bits with SplFixedArray class.

It provides an array interface to store a given fixed number of bits.

The array of bits can be traversed with an iterator interface that allows accessing the bits with regular functions for accessing arrays.

Innovation Award  
PHP Programming Innovation award nominee
January 2013
Number 5


Prize: One downloadable copy of Komodo IDE
The regular arrays in PHP are implemented internally as hash tables.

This means that the access to any array element access requires the computation of a hash value and the eventual traversal of a linked list of array elements.

For arrays with entries indexed by their numeric position, it is faster to use the SplFixedArray class.

This class uses the SplFixedArray class to provide a faster interface to access arrays of bits.

Manuel Lemos
Picture of CPK Smithies
Name: CPK Smithies <contact>
Classes: 7 packages by
Country: United Kingdom United Kingdom
Age: 60
All time rank: 160569 in United Kingdom United Kingdom
Week rank: 765 Up26 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Files folder imagetests (2 files)
Plain text file bitvec.php Class Bitvec class source
Accessible without login Plain text file LICENCE Doc. Licence terms
Accessible without login Plain text file phpdoc.dist.xml Data Configuration for generating the HTML documentation
Accessible without login Plain text file phpunit.xml.dist Data Unit test configuration
Accessible without login Plain text file README Doc. About the package

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file bvt1.php Test Unit tests on bitvec, demo prime generation
  Accessible without login Plain text file prime.php Example Demo using bitvec to generate primes using sieve techniques

 Version Control Unique User Downloads Download Rankings  
 0%Total:166All time:7,347
 This week:0This week:1,457Up