"Andi Gutmans" <[EMAIL PROTECTED]> wrote > PHP 5 per-class constants can already except static arrays such as > array(1, 2, 3) as their value. I'll put the issue of global constants on > my TODO and believe PHP 5 will also support these for global constants. > However, you won't be able to create a constant with a non-constant value > such as $_GET as this goes against the whole idea of constant :)
This is not true to my mind. define ("INC_DIR",$foo); this "Constant" is not predefined by the developer, BUT it is a constant-value for the rest of the script. To my mind such "constants" make sense, because - they are global - they can't change their value while execution - it doesn't matter if the constant-value is set dynamically when defining it So I would be glad to see this feature in PHP5. Christian Dickmann -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]