Login   Register  
PHP Classes
elePHPant
Icontem

Constant Array

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of sourav ray
Name: sourav ray is available for providing paid consulting. Contact sourav ray .
Packages: 2 Browse all classes by sourav ray Browse all classes by
Country: India India - PHP jobs in India
Age: 33
All time rank: 144278 in India India
Week rank: 2205 Down145 in India India Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
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 ]

  Classes of sourav ray  >  Constant Array  >  Download .zip .tar.gz  >  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
Version: 2.0.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 706 users
All time rank: 4035
Week users: 0 users
Week rank: 2051 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  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


  Innovation Award  
PHP Programming Innovation award nominee
November 2007
Number 7

Prize: One copy of Delphi for PHP
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.