> 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
- [PHP-DOC] constant.xml : clarifying Damien Seguy
- Hojtsy Gabor
