Login   Register  
PHP Classes
elePHPant
Icontem

Simple Enumeration

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ellery Leung  >  Simple Enumeration  >  Download .tar.gz .zip  >  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
Related classes: ,
Version: -
PHP version: 3.0
License: BSD License
All time users: 1342 users
All time rank: 2421
Week users: 4 users
Week rank: 905
 

  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: 3131 in Hong Kong Hong Kong
Week rank: 705 Down4 in Hong Kong Hong Kong Down


  Detailed description  
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.

  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
Plain text file example.php Example Example file
Plain text file SimpleEnum.class.php Class Core class

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.