[PHP-DEV] FeatureRequest for PHP5

2002-01-23 Thread Christian Dickmann
Hi all, It would be great if it was possible to have CONSTANTS of types like as Arrays or Objects. This way one could have a Config-Constant and you wouldn't need to use $GLOBALS. Christian Dickmann -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL

Re: [PHP-DEV] FeatureRequest for PHP5

2002-01-23 Thread Andi Gutmans
You can already use constant arrays such as array(1, 2, 3) as constants. Andi On Wed, 23 Jan 2002, Christian Dickmann wrote: Hi all, It would be great if it was possible to have CONSTANTS of types like as Arrays or Objects. This way one could have a Config-Constant and you wouldn't

Re: [PHP-DEV] FeatureRequest for PHP5

2002-01-23 Thread Philip Olson
It would be great if it was possible to have CONSTANTS of types like as Arrays or Objects. You can already use constant arrays such as array(1, 2, 3) as constants. Maybe some day ;) define('BLAH', array(4,5)); Warning: Constants may only evaluate to scalar values You can serialize