Re: Why can constants only be scalars?
| From: | Ilya Sher | Date: | Mon, 10 May 2004 07:50:06 +0000 |
| Subject: | Re: Why can constants only be scalars? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9782@lists.php.net to get a copy of this message | ||
[snip]
Same here. I have a number of static arrays that I use for reference data that are usually encapsulated in a function, or a global / session variable. It would be very handy to be able to define a constant array instead. - Gabriel =====Agreed. Also using arrays of constants without a way to express myself properly about the constant nature of the arrays.