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 This week: 1All time: 4,565 This week: 560Up
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: 44
All time rank: 162392 in India India
Week rank: 411 Up26 in India India Up
Innovation award
Innovation award
Nominee: 1x

  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:730
This week:1
All time:4,565
This week:560Up
 User Ratings  
 
 All time
Utility:33%StarStar
Consistency:41%StarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:27%StarStar
Rank:4316