PHP Classes

Constant Array: Declare arrays as constants

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   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
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: 45
All time rank: 162692 in India India
Week rank: 216 Up14 in India India Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:730
This week:0
All time:4,568
This week:455Up
 User Ratings  
 
 All time
Utility:33%StarStar
Consistency:41%StarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:27%StarStar
Rank:4384