Login   Register  
PHP Classes

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 <contact>
Classes: 6 packages by
Country: Hong Kong Hong Kong
Age: ???
All time rank: 3201 in Hong Kong Hong Kong
Week rank: 311 Up2 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: 1415 users
All time rank: 2532
Week users: 1 user
Week rank: 1521 Up
  Groups   Rate classes User ratings   Applications   Files Files  

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 package  
No pages of applications that use this class were specified.
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.