Re: [PHP-DOC] constant.xml : clarifying From: Hojtsy Gabor (goba <email protected>)
Date: 07/10/01

> 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