note 9772 added to define
| From: | paul at cnt dot org | Date: | Wed, 22 Nov 2000 22:10:23 +0000 |
| Subject: | note 9772 added to define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8007@lists.php.net to get a copy of this message | ||
Can constants, after being defined, be refer to by something other than their literally defined
name? In other words, can a variably refer to a constant's value?
Ex:
define("SOME_CONSTANT", 1);
$somevar = "CONSTANT";
echo SOME_$somevar; ?????
http://www.php.net/manual/function.define.php