Re: Constant arrays

From: Date: Wed, 21 Dec 2011 09:01:57 +0000
Subject: Re: Constant arrays
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-56976@lists.php.net to get a copy of this message
Okay, but those effectively don't exist in PHP ;) Julien On Tue, Dec 20, 2011 at 11:43 PM, David Muir <davidkmuir@gmail.com> wrote: > 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 (#56976) next »