constant from variable
| From: | Tanel Tammik | Date: | Fri, 04 Jun 2010 19:07:56 +0000 |
| Subject: | constant from variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-305830@lists.php.net to get a copy of this message | ||
Hi,
define('MYCONST', 'something');
$my = 'my';
$const = 'const';
is it possible to get the value of MYCONST using variables $my and $const_
Br
Tanel