Re: Variable name for constants?

From: Date: Thu, 11 Dec 2008 08:18:50 +0000
Subject: Re: Variable name for constants?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-284468@lists.php.net to get a copy of this message
I dont think you can do that with a constant, but you can do this a normal variable:
I stand under correction form my previous email, it can be done: define('TEST', 'the value of constant TEST'); $var= 'TEST'; echo constant($var);

« previous php.general (#284468) next »