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
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
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