Login   Register  
PHP Classes
elePHPant
Icontem

Class: 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: 1316 users
All time rank: 2437
Week users: 0 users
Week rank: 2503
Picture of Ellery Leung
Author: Ellery Leung <e-mail contact>
Packages: 6 Browse this author's classes Browse this author's classes
Country: Hong Kong Hong Kong - PHP jobs in Hong Kong
Age: ???
All time rank: 3111 in Hong Kong Hong Kong
Week rank: 601 Down3 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  
Group folder image Data types Modeling and manipulating data types View top rated classes

  Rate classes User ratings   Applications   Files Files  

  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.