PHP Classes
Icontem

Class: Simple Enumeration


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ellery Leung  >  Simple Enumeration  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple Enumeration Support forum
Base name: enum
Description: Implement enumerated types using arrays
Version: -
Required PHP version: 3.0
License: BSD License
All time users: 872 users
All time rank: 2714
Week users: 6 users
Week rank: 1243
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Ellery Leung
Name: Ellery Leung <e-mail contact>
Published packages: 6 Browse this author's classes Browse this author's classes
Country: Hong Kong Hong Kong - PHP jobs in Hong Kong
Home page: ???
Age: ???
All time rank: 361
Week rank: 334

Groups

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

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.

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

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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products