Re: Constant arrays
| From: | jpauli | Date: | Tue, 20 Dec 2011 16:37:46 +0000 |
| Subject: | Re: Constant arrays | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56966@lists.php.net to get a copy of this message | ||
I guess constant array would mean that all the variables inside the array
dimensions should not change.
Just saying that, is a nonsense.
If a constant could be an array, then that array could not contain
variables, if not it wouldn't be constant any more as a change to one
variable inside it would change its own meaning value.
Julien.P
On Tue, Dec 20, 2011 at 1:28 AM, Qiang Guo <qguo@ualberta.ca> wrote:
>
> Yes, I am wondering too. For mechanism you can refer to the source code,
> and can someone explain why we cannot have constant arrays ?
>
> Qiang
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>