I know constants can't be changed or undefined; the use I have in mind won't be; the array size and elements would be completely static. I'm just looking to do this for the sake of ease of access to its elements and to eliminate the need to redeclare the array as global in every bleeping function that uses its data.
-----Original Message----- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 6:56 AM To: Daniel R. Hansen Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Constant Arrays Possible? 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php