PHP Classes

Constant Array: Declare arrays as constants

Recommend this page to a friend!

  Author Author  
Name: sourav ray is available for providing paid consulting. Contact sourav ray .
Classes: 2 packages by
Country: India India
Age: 39
All time rank: 159293 in India India
Week rank: 932 Up71 in India India Up
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download 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 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: 729 users
All time rank: 4466
Week users: 0 users
Week rank: 794 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

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  
Not enough user ratings

  Applications that use this package  
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 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 Download all files: arrconst.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.