Re: constant.xml : clarifying
| From: | Hojtsy Gabor | Date: | Tue, 10 Jul 2001 09:24:55 +0000 |
| Subject: | Re: constant.xml : clarifying | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969336063@lists.php.net to get a copy of this message | ||
> I ran into this sentence :
> " You can also use the <function>constant</function>-function, for
> example if the name of the constant is variable.
> "
> which I couldn't understand.
> I think Jeroen wrote this : can you give me a hint?
I never used this, but I supposed, it should:
define("CONS", 12);
$consname = "CONS";
echo CONS;
echo constant($consname);
Here the constants name is in a variable....
Goba