Innovation Award
 November 2007
Number 7 |
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 |
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 ]
| There are not enough user ratings to display for this class. |

If you know an application of this package, send a message to the
author to add a link here.