PHP Classes
Icontem

Class: Constant Array


  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 sourav ray  >  Constant Array  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Constant Array Support forum
Base name: arrconst
Description: Declare arrays as constants
Related top rated classes:
Version: 2.0.0
Required PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 591 users
All time rank: 3383
Week users: 4 users
Week rank: 1815
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of sourav ray
Name: sourav ray is available for providing paid consulting. Contact sourav ray .
Published packages: 2 Browse this author's classes Browse this author's classes
Country: India India - PHP jobs in India
Home page: http://i-code-today.blogspot.com/
Age: 30
All time rank: 1348
Week rank: 807

Innovation Award

PHP Programming Innovation award nominee
November 2007
Number 7
In PHP you can declare values as constants, however only scalar type values are supported.

This class provides an alternative solution that can be used to also declare array values as constants.

Manuel Lemos

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes

Detailed description

This class can be used to declare arrays as constants.

It serializes a given array value to a string and assigns it a given constant.

The class can also do the opposite, i.e retrieve the original constant array value by unserializing the value assigned to the constant.

In Version 2.0.0 arrConst got an advance feature of
accessing the value of a particular element of the Array Constant
The get method is overloaded for this purpose [;) I know actual overloading is not possible in PHP ]

User ratings

There are not enough user ratings to display for this class.

Applications that use this class

Link Description
gaming site, that uses this class This site have uses this class extensively to save the user settings as a global constant
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
Accessible without login Plain text file arrConst.inc.php Class arrConst library
Accessible without login Plain text file example.php Example example - please see to it..
Accessible without login Plain text file license Lic. license
Download all files: arrconst.tar.gz arrconst.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