Re: Constant Arrays Possible?

From: Date: Sun, 23 Feb 2003 12:55:52 +0000
Subject: Re: Constant Arrays Possible?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136721@lists.php.net to get a copy of this message
At 20:28 22.02.2003, Daniel R. Hansen said: --------------------[snip]-------------------- >Is it possible to define a constant that is an array of other predefined >constants? If so, what would the syntax be? I'm trying something like the >following (all items prefixed with an uppercase "G" are constants) without >success: --------------------[snip]-------------------- No, it is not possible. From the online manual (http://www.php.net/manual/en/language.constants.php): Syntax You can define a constant by using the define()-function. Once a constant is defined, it can never be changed or undefined. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#136721) next »