PHP Classes

Constant Array: Declare arrays as constants

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 27%Total: 730 All time: 4,568 This week: 455Up
Version License PHP version Categories
arrconst 2.0.0GNU General Publi...5.0PHP 5, Data types


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 ]

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
Picture of sourav ray
Name: sourav ray is available for providing paid consulting. Contact sourav ray .
Classes: 2 packages by
Country: India India
Age: 44
All time rank: 162692 in India India
Week rank: 233 Up16 in India India Up
Innovation award
Innovation award
Nominee: 1x

  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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,568
This week:455Up
 User Ratings  
 All time