PHP Classes
Icontem

Class: Bitmask Magic


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Timm Simpkins  >  Bitmask Magic  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  
  • Supplied by:

    Picture of Timm Simpkins
    Name: Timm Simpkins <e-mail contact>
    Published packages: 1
    Country: United States United States - PHP jobs in United States
    Home page: ???
    Age: 34
    All time rank: 1605
    Week rank: 1163

    Browse this author's classes

  • Groups:

    Group folder image Math Math related classes. View top rated classes
  • Detailed description:

    This class is designed to create bitmasks, which are very commonly used to store lists of true or false values as a single integer.

    The class can manpulate bitmasks that are not limited to 32 bits. It does not need the PHP gmp extension to provide arbitrary bit length support.

    This absence of limits may encourage the storage of more complex data than merely true or false lists for those that are creative enough to figure it out.

    Although PHP programmers commonly rely on databases to do much of the grunt work that is most commonly done by bitmasks in other types of programming, there is nothing better for tracking things such as user permissions, product options, and I have even used them to trace complex data structures.

    Features:

    - Convert arrays of booleans to bitmasks

    - Convert bitmasks to booleans

    - Convert bitmasks to arrays of booleans

    - Store virtually unlimited bit depth bitmasks in string form

    - Query individual bits to see if they are set

    - Enter an associative array, manipulate bits and return the array in either the full array or only the values that are set
  • User ratings:

    There are not enough user ratings to display for this class.
  • Applications that use this class:

    No application links were specified for this class.
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Files:

    File Role Description
    Plain text file bitmask.class.php Class bitmask class
    Plain text file bitmask_example.php Example Example file for bitmask class
    Download all files: bitmask.tar.gz bitmask.zip
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2008 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products