Constant Arrays Possible?

From: Date: Sat, 22 Feb 2003 19:28:52 +0000
Subject: Constant Arrays Possible?
Groups: php.general 
Request: Send a blank email to php-general+get-136657@lists.php.net to get a copy of this message
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: define("GaNavButtons", array( GnavSectionHome => array ( GsectionSelected => Gb_home, GsectionUnSelected => Gb_home_uns), GnavSectionLinks => array ( GsectionSelected => Gb_links, GsectionUnSelected => Gb_links_uns), GnavSectionAbout => array ( GsectionSelected => Gb_about, GsectionUnSelected => Gb_about_uns), GnavSectionContact => array ( GsectionSelected => Gb_contact, GsectionUnSelected => Gb_contact_uns), GnavSectionShopping => array ( GsectionSelected => Gb_shopping, GsectionUnSelected => Gb_shopping_uns));

« previous php.general (#136657) next »