Login   Register  
PHP Classes
elePHPant
Icontem

Class: Constant Array

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of sourav ray  >  Constant Array  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Constant Array
Base name: arrconst
Description: Declare arrays as constants
Related classes: ,
Version: 2.0.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 688 users
All time rank: 3796
Week users: 2 users
Week rank: 1770
Picture of sourav ray
Author: sourav ray is available for providing paid consulting. Contact sourav ray .
Packages: 2 Browse this author's classes Browse this author's classes
Country: India India - PHP jobs in India
Age: 32
All time rank: 139473 in India India
Week rank: 743 Up50 Up in India India
Innovation award
Innovation award
Nominee: 1x


  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 ]

 

  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

  Rate classes User ratings   Applications   Files Files  

  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

  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 folder image 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.