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
Not enough user ratingsTotal: 729 All time: 4,549 This week: 794Up
Version License PHP version Categories
arrconst 2.0.0GNU General Publi...5.0PHP 5, Data types
Description Author

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: 43
All time rank: 162092 in India India
Week rank: 479 Up36 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,549
This week:794Up
For more information send a message to info at phpclasses dot org.