bitstostring.php File Reference

Go to the source code of this file.

Functions

 bitsToString ($type, $bits, $lookup, $joinString=', ', $useAnd=false)


Detailed Description

Author:
Michael Simons <ixulai@gmail.com> http://creativecommons.org/licenses/by/2.5/ Creative Commons

Definition in file bitstostring.php.


Function Documentation

bitsToString type,
bits,
lookup,
joinString = ',
,
useAnd = false
 

A lookup utility function to convert a bitfield in to a string using a lookup with performance enhancements for repetitive usage.

Version:
1.1.00
Parameters:
type (String) A string representing the type of conversion.
bits (Integer) The bitfield to convert.
lookup (Array) A lookup array to use as a reference when converting from bits to words.
joinString (String) A string to insert between each converted bitfield value.
useAnd (Boolean) A boolean to indicate wether to use an english ' and ' as the joining string for the last entry for gramatical correctness.
Returns:
(String) A string representing the bitfield.

Definition at line 19 of file bitstostring.php.


Generated on Wed Oct 25 03:13:32 2006 for LFSWorldParsingProviderFramework by  doxygen 1.4.6