Login   Register  
PHP Classes
elePHPant
Icontem

Simple Enumeration: Implement enumerated types using arrays

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Ellery Leung
Name: Ellery Leung <e-mail contact>
Packages: 6 Browse all classes by Ellery Leung Browse all classes by
Country: Hong Kong Hong Kong - PHP jobs in Hong Kong
Age: ???
All time rank: 3201 in Hong Kong Hong Kong
Week rank: 783 Down5 in Hong Kong Hong Kong Down


  Detailed description   Download Download .zip .tar.gz  
This class can be used to implement enumerated types using PHP arrays.

It takes an arrays of strings or numbers to be used as names of the enumerated type entries.

The class can check whether a string or number is one of the possible enumerated values and return the respective enumerated value.

It can also return the number of enumerated values and display those values.

  Classes of Ellery Leung  >  Simple Enumeration  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple Enumeration
Base name: enum
Description: Implement enumerated types using arrays
Version: -
PHP version: 3.0
License: BSD License
All time users: 1408 users
All time rank: 2514
Week users: 0 users
Week rank: 1181 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Data types Modeling and manipulating data types View top rated classes


  User ratings  
Not yet rated by the users

  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 folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example file
Plain text file SimpleEnum.class.php Class Core class

Download Download all files: enum.tar.gz enum.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.