PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2007-11-21 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 729 All time: 4,484 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
Name: sourav ray is available for providing paid consulting. Contact sourav ray .
Classes: 2 packages by
Country: India India
Age: 39
All time rank: 159693 in India India
Week rank: 675 Up53 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:729
This week:0
All time:4,484
This week:794Up