Re: Constant arrays

From: Date: Tue, 20 Dec 2011 22:43:36 +0000
Subject: Re: Constant arrays
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-56968@lists.php.net to get a copy of this message
On 12/21/2011 03:37 AM, jpauli wrote: > 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 > > A constant can only contain static values. There was no mention of variables. Isn't a "constant" array basically the same as an Enum? David

« previous php.internals (#56968) next »